Skip to content
Snippets Groups Projects
Commit ce682166 authored by poka's avatar poka
Browse files

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

parent 70b4c8a9
No related branches found
No related tags found
No related merge requests found
Pipeline #35146 waiting for manual action
......@@ -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('/'));
},
),
),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment