willPopScope fix

This commit is contained in:
Serhii 2023-12-13 14:08:18 +02:00
parent d5b9af1c19
commit 747a760124

View file

@ -31,7 +31,7 @@ class WarningPage extends BasePage {
final image = currentTheme.type == ThemeType.dark ? imageDark : imageLight;
return WillPopScope(
onWillPop: () async => false,
onWillPop: () async => !isPreSeedPage,
child: Container(
alignment: Alignment.center,
padding: EdgeInsets.all(24),