Show error message longer (10s) when email generation fails
This commit is contained in:
@@ -67,7 +67,14 @@ class _EmailComposeScreenState extends ConsumerState<EmailComposeScreen> {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (mounted) {
|
if (mounted) {
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
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 {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user