TechnoPrashant / Sizer

A flutter plugin for Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. Responsiveness made simple.
MIT License
249 stars 76 forks source link

Blank White Page with GetMaterialApp #50

Closed rjkolli7 closed 1 month ago

rjkolli7 commented 2 years ago

When using Sizer package along with Getx package. Sizer is not working it showing Empty white screen.

This is how Sizer is applied to GetMaterialApp widget.

GetBuilder<ThemeController>(builder: (themeController) { return Sizer(builder: (context, orientation, deviceType) { return GetMaterialApp( debugShowCheckedModeBanner: false, enableLog: true, logWriterCallback: Logger.write, title: StringHelper.appTitle, theme: themeController.getTheme(), initialRoute: GetPlatform.isMobile ? Routes.splash : isLogin ? Routes.home : Routes.auth, getPages: AppPages.routes, ); }); });

There is no error log to provide.

Am607 commented 2 years ago

I am also using sizer with bloc all and it also giving white screen error in release mode did you fix this issue?

boris1690 commented 1 year ago

Solution other library https://pub.dev/packages/responsive_sizer/install