LateInitializationError: Field '_splitScreenMode@464084504' has not been initialized.

Created At: 2023-12-29 14:26:01 Updated At: 2023-12-29 14:30:58

LateInitializationError: Field '_splitScreenMode@464084504' has not been initialized error appears if you use screen_util package.

You are missing ScreenUtilInit(). Let's see the below code. Just make sure your MaterialApp() is inside ScreenUtilInit()

  1. return ScreenUtilInit(
  2. designSize: const Size(375, 812),
  3. builder: (context, child){
  4. return MaterialApp(
  5. home: WelcomePage(),
  6. );
  7. })

Comment

Add Reviews