bug fixed
This commit is contained in:
@@ -40,7 +40,12 @@ class MyApp extends StatelessWidget {
|
||||
// This widget is the root of your application.
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
return WillPopScope(
|
||||
onWillPop: () async {
|
||||
// Returning false prevents the back button action globally
|
||||
return false;
|
||||
},
|
||||
child: MaterialApp(
|
||||
// localizationsDelegates: const [
|
||||
// GlobalMaterialLocalizations.delegate,
|
||||
// GlobalWidgetsLocalizations.delegate,
|
||||
@@ -77,7 +82,7 @@ class MyApp extends StatelessWidget {
|
||||
'/DrawScreen': (context) => DrawScreen(),
|
||||
//Home
|
||||
'/HomePage': (context) => const HomePage(),
|
||||
});
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user