bug fixed
This commit is contained in:
@@ -51,7 +51,7 @@ class Api {
|
||||
static String otp = "https://otp.thaibulksms.com/v2/otp/request";
|
||||
static String verify = "https://otp.thaibulksms.com/v2/otp/verify";
|
||||
static String otpEmail = BaseUrlCathay+"common/user_login/otp/";
|
||||
static String menuIcons = BaseUrlCathay+"common/icon";
|
||||
static String menuIcons = BaseUrlCathay+"common/icon?is_use=true";
|
||||
|
||||
static String banner = BaseUrlCathay + "common/banner/";
|
||||
static String promotion = BaseUrlCathay + "common/promotion/";
|
||||
|
||||
@@ -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