desktop routing fix

This commit is contained in:
julian 2022-12-09 15:42:35 -06:00
parent 5ed5e6e8ef
commit 5fcf642a8b

View file

@ -18,7 +18,6 @@ import 'package:stackwallet/providers/global/secure_store_provider.dart';
import 'package:stackwallet/utilities/assets.dart'; import 'package:stackwallet/utilities/assets.dart';
import 'package:stackwallet/utilities/constants.dart'; import 'package:stackwallet/utilities/constants.dart';
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart'; import 'package:stackwallet/utilities/enums/backup_frequency_type.dart';
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
import 'package:stackwallet/utilities/format.dart'; import 'package:stackwallet/utilities/format.dart';
import 'package:stackwallet/utilities/logger.dart'; import 'package:stackwallet/utilities/logger.dart';
@ -218,8 +217,10 @@ class _EditAutoBackupViewState extends ConsumerState<EditAutoBackupView> {
passwordController.text = ""; passwordController.text = "";
passwordRepeatController.text = ""; passwordRepeatController.text = "";
Navigator.of(context) if (!Util.isDesktop) {
.popUntil(ModalRoute.withName(AutoBackupView.routeName)); Navigator.of(context)
.popUntil(ModalRoute.withName(AutoBackupView.routeName));
}
} }
} else { } else {
await showDialog<dynamic>( await showDialog<dynamic>(