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

feat: don't close screen if cancel scanner

parent fcff3e60
No related branches found
No related tags found
No related merge requests found
Pipeline #18981 waiting for manual action
......@@ -34,6 +34,10 @@ class WalletsProfilesProvider with ChangeNotifier {
return 'false';
}
if (isAddress(barcode.rawContent)) {
Navigator.popUntil(
context,
ModalRoute.withName('/'),
);
Navigator.push(
context,
MaterialPageRoute(builder: (context) {
......
......@@ -62,10 +62,6 @@ class GeckoBottomAppBar extends StatelessWidget {
iconSize: 70,
icon: const Image(image: AssetImage('assets/qrcode-scan.png')),
onPressed: () async {
Navigator.popUntil(
context,
ModalRoute.withName('/'),
);
historyProvider.scan(homeContext);
},
),
......
......@@ -110,5 +110,4 @@ flutter:
- assets/onBoarding/
- assets/onBoarding/progress_bar/
- assets/walletOptions/
- sounds/
- .env
- sounds/
\ No newline at end of file
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