|
|
@ -168,7 +168,11 @@ class MyApp extends StatelessWidget { |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
Widget build(BuildContext context) { |
|
|
|
Widget build(BuildContext context) { |
|
|
|
return ScreenUtilInit( |
|
|
|
return MediaQuery( |
|
|
|
|
|
|
|
data: const MediaQueryData( |
|
|
|
|
|
|
|
size: Size(375, 812), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
child:ScreenUtilInit( |
|
|
|
designSize: Size(375, 812), |
|
|
|
designSize: Size(375, 812), |
|
|
|
builder: () => MaterialApp( |
|
|
|
builder: () => MaterialApp( |
|
|
|
debugShowCheckedModeBanner: false, |
|
|
|
debugShowCheckedModeBanner: false, |
|
|
@ -200,6 +204,7 @@ class MyApp extends StatelessWidget { |
|
|
|
home: (isFirst ?? true) ? GuidePage() : LoginPage(), |
|
|
|
home: (isFirst ?? true) ? GuidePage() : LoginPage(), |
|
|
|
builder: EasyLoading.init( |
|
|
|
builder: EasyLoading.init( |
|
|
|
builder: (context, widget) { |
|
|
|
builder: (context, widget) { |
|
|
|
|
|
|
|
ScreenUtil.setContext(context); |
|
|
|
return MediaQuery( |
|
|
|
return MediaQuery( |
|
|
|
data: MediaQuery.of(context).copyWith( |
|
|
|
data: MediaQuery.of(context).copyWith( |
|
|
|
textScaleFactor: AppUtils.textScale(context), |
|
|
|
textScaleFactor: AppUtils.textScale(context), |
|
|
@ -230,7 +235,7 @@ class MyApp extends StatelessWidget { |
|
|
|
); |
|
|
|
); |
|
|
|
}, |
|
|
|
}, |
|
|
|
), |
|
|
|
), |
|
|
|
); |
|
|
|
)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|