Account Info card changes and snackbar in statement
This commit is contained in:
@@ -614,6 +614,14 @@ class _AccountStatementScreen extends State<AccountStatementScreen> {
|
||||
),
|
||||
payload: filePath,
|
||||
);
|
||||
|
||||
if (mounted) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text('PDF saved to: $filePath'),
|
||||
),
|
||||
);
|
||||
}
|
||||
} catch (e) {
|
||||
await flutterLocalNotificationsPlugin.show(
|
||||
0,
|
||||
@@ -629,6 +637,14 @@ class _AccountStatementScreen extends State<AccountStatementScreen> {
|
||||
icon: 'notification_icon'),
|
||||
),
|
||||
);
|
||||
|
||||
if (mounted) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text('Error saving PDF: $e'),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user