Browse Source

minor fix

ashilkn 2 years ago
parent
commit
5aee648ab7
1 changed files with 3 additions and 7 deletions
  1. 3 7
      lib/ui/backup_settings_screen.dart

+ 3 - 7
lib/ui/backup_settings_screen.dart

@@ -29,13 +29,9 @@ class BackupSettingsScreen extends StatelessWidget {
               IconButtonWidget(
                 icon: Icons.close_outlined,
                 isSecondary: true,
-                onTap: () async {
-                  int i = 0;
-                  //pop twice
-                  Navigator.popUntil(context, (route) {
-                    i++;
-                    return i == 3;
-                  });
+                onTap: () {
+                  Navigator.pop(context);
+                  Navigator.pop(context);
                 },
               ),
             ],