feat: enhance error handling; implement copyable SnackBar for user messages across various screens
Test Suite / test (24.15.0) (push) Has been cancelled
Test Suite / test (24.15.0) (push) Has been cancelled
This commit is contained in:
@@ -56,7 +56,7 @@ class _MealPlanScreenState extends ConsumerState<MealPlanScreen> {
|
||||
} catch (error) {
|
||||
if (!mounted) return;
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(content: Text(mapErrorToUserMessage(error, context))),
|
||||
buildCopyableErrorSnackBar(context, mapErrorToUserMessage(error, context))),
|
||||
);
|
||||
} finally {
|
||||
if (mounted) {
|
||||
@@ -593,4 +593,4 @@ class _EnrichedShoppingItem {
|
||||
}
|
||||
|
||||
String _formatQuantity(double value) => formatQuantity(value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user