From 637e74e45bb22ee8ec47c8d046f78ca49e118b22 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Tue, 24 Sep 2024 18:14:51 +0200 Subject: [PATCH] fix --- lib/pages/transaction.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/pages/transaction.dart b/lib/pages/transaction.dart index 1d3b39f..942d683 100644 --- a/lib/pages/transaction.dart +++ b/lib/pages/transaction.dart @@ -302,6 +302,13 @@ class TransactionSelectPage extends StatelessWidget { selectionList.add(s); } + if (selectionList.isEmpty) { + Navigator.of(context).pop(); + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar(content: Text('No Transactions to select')), + ); + } + return Scaffold( appBar: AppBar( title: const Text("Select a Transaction"),