bug fixed

This commit is contained in:
nutchayut
2024-12-24 13:29:37 +07:00
parent a1c2e688fb
commit e6e3de4b6a
4911 changed files with 104233 additions and 52025 deletions

View File

@@ -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(),
});
}));
}
}