From 99f098344630b6afe860478159aae03669492fd8 Mon Sep 17 00:00:00 2001 From: Hammer Date: Tue, 27 Jan 2026 22:37:07 +0000 Subject: [PATCH] Show error message longer (10s) when email generation fails --- .../emails/presentation/email_compose_screen.dart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/features/emails/presentation/email_compose_screen.dart b/lib/features/emails/presentation/email_compose_screen.dart index 1fd94ee..5c9b4fa 100644 --- a/lib/features/emails/presentation/email_compose_screen.dart +++ b/lib/features/emails/presentation/email_compose_screen.dart @@ -67,7 +67,14 @@ class _EmailComposeScreenState extends ConsumerState { } catch (e) { if (mounted) { ScaffoldMessenger.of(context).showSnackBar( - SnackBar(content: Text('Failed to generate: $e')), + SnackBar( + content: Text('Failed to generate: $e'), + duration: const Duration(seconds: 10), + action: SnackBarAction( + label: 'Dismiss', + onPressed: () {}, + ), + ), ); } } finally {