go to home screen on clicking 'close' from backup settings screen

This commit is contained in:
ashilkn 2022-10-31 22:08:16 +05:30
parent e96f6d7ac6
commit 29ac7c784d

View file

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