feat: add formula screen UI components with stack trace logging
Co-authored-by: aider (openrouter/deepseek/deepseek-r1:free) <aider@aider.chat>
This commit is contained in:
parent
fe89630f53
commit
30a61eaa70
1 changed files with 6 additions and 4 deletions
|
|
@ -82,11 +82,13 @@ class _FormulaScreenState extends State<FormulaScreen> {
|
|||
}
|
||||
|
||||
setState(() {});
|
||||
} catch (e) {
|
||||
e
|
||||
} catch (e, stack) {
|
||||
debugPrint('Formula evaluation error: $e');
|
||||
debugPrint('Stack trace: $stack');
|
||||
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text('Evaluation error: ${e.toString()}'),
|
||||
content: Text('Error: ${e.toString()}\n${stack.toString()}'),
|
||||
backgroundColor: Theme.of(context).colorScheme.error,
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue