Commit 164300d

derdilla <82763757+derdilla@users.noreply.github.com>
2025-08-22 14:02:17
Implement export success feedback (#586)
1 parent c6d01f6
Changed files (2)
app
lib
features
export_import
l10n
app/lib/features/export_import/export_button.dart
@@ -92,6 +92,19 @@ void performExport(BuildContext context, bool share) async { // TODO: extract
       );
       final pdf = await pdfConverter.create(await _getEntries(context));
       if (context.mounted) await _exportData(context, pdf, '$filename.pdf', 'text/pdf', share);
+      break;
+  }
+
+  if (context.mounted) {
+    ScaffoldMessenger.of(context).showSnackBar(SnackBar(
+      content: Row(
+        children: [
+          Icon(Icons.check_circle, color: Colors.green),
+          SizedBox(width: 8.0),
+          Text(localizations!.exportSuccess),
+        ],
+      ),
+    ));
   }
 }
 
app/lib/l10n/app_en.arb
@@ -568,5 +568,7 @@
   "dontShowAgain": "Don''t show again",
   "@dontShowAgain": {},
   "btnShare": "SHARE",
-  "@btnShare": {}
+  "@btnShare": {},
+  "exportSuccess": "Export successful",
+  "@exportSuccess": {}
 }