fix: can use safe button in bottom appbar again (regression)

This commit is contained in:
poka 2024-01-05 13:13:23 +01:00
parent 70b4c8a96d
commit ce68216684
1 changed files with 8 additions and 9 deletions

View File

@ -104,16 +104,15 @@ class GeckoBottomAppBar extends StatelessWidget {
},
),
);
if (myWalletProvider.pinCode == '') return;
Navigator.popUntil(
context, ModalRoute.withName('/'));
//FIXME: Should not have to wait 300 milliseconds when /mywallets exist in navigator...
sleep(const Duration(milliseconds: 300));
Navigator.pushNamed(context, '/mywallets');
// Navigator.pushNamedAndRemoveUntil(
// context, '/mywallets', ModalRoute.withName('/'));
}
if (myWalletProvider.pinCode == '') return;
Navigator.popUntil(context, ModalRoute.withName('/'));
//FIXME: Should not have to wait 300 milliseconds when /mywallets exist in navigator...
sleep(const Duration(milliseconds: 300));
Navigator.pushNamed(context, '/mywallets');
// Navigator.pushNamedAndRemoveUntil(
// context, '/mywallets', ModalRoute.withName('/'));
},
),
),