Closed parmeetmaster closed 2 years ago
Hello sir,
my code was working fine with the previous version but after updating plugin my Get material app is not working fine
return ScreenUtilInit( designSize: Size(412, 847), builder: () => GetMaterialApp( builder: EasyLoading.init(), debugShowCheckedModeBanner: false, navigatorObservers: <NavigatorObserver>[FirebaseUtils.observer], theme: ThemeData( scaffoldBackgroundColor: AppColors.WHITE, appBarTheme: AppBarTheme( systemOverlayStyle: SystemUiOverlayStyle.light, ), primaryColor: AppColors.THEME_COLOR, backgroundColor: AppColors.WHITE, radioTheme: Theme.of(context).radioTheme.copyWith( fillColor: MaterialStateProperty.all(AppColors.BLUE_PRIMARY)), textTheme: GoogleFonts.robotoTextTheme( Theme.of(context).textTheme, ), visualDensity: VisualDensity.adaptivePlatformDensity, colorScheme: Theme.of(context) .colorScheme .copyWith(secondary: AppColors.BLACK) .copyWith(secondary: AppColors.THEME_COLOR), ), home: SplashScreen(), ));
This is error showing below
修改成如下即可: return MediaQuery( data: MediaQueryData.fromWindow(WidgetsBinding.instance!.window), child: ScreenUtilInit(
Hello sir,
my code was working fine with the previous version but after updating plugin my Get material app is not working fine
This is error showing below