From 4a3f097b024c0ad66dcdb31d8c46dba4ee933eb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Caras?= Date: Mon, 26 Feb 2024 22:58:01 +0100 Subject: [PATCH] fix: showing created entry after OCR --- lib/views/home.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/views/home.dart b/lib/views/home.dart index 58c72fb..23c82e9 100644 --- a/lib/views/home.dart +++ b/lib/views/home.dart @@ -247,7 +247,9 @@ class _HomeViewState extends State { .then((value) async { wallets = await WalletManager.listWallets(); selectedWallet = await WalletManager.loadWallet( - selectedWallet!.name,); + selectedWallet!.name, + ); + setState(() {}); }); } else if (value == AppLocalizations.of(context).about) { showAbout(context); @@ -650,7 +652,7 @@ class _HomeViewState extends State { await showAdaptiveDialog( context: context, builder: (c) => StatefulBuilder( - builder: (ctx, setState) => AlertDialog.adaptive( + builder: (ctx, setDialogState) => AlertDialog.adaptive( actions: [ TextButton( onPressed: () async { @@ -764,7 +766,7 @@ class _HomeViewState extends State { 1 && !value)) return; selectedLanguages[index] = value; - setState(() {}); + setDialogState(() {}); }, ), const SizedBox(