I am implementing Splash Screen in flutter along with it i am using sharedPreferences I am facing late initialisation error in it
Here I have implemented splash screen and in main.dart I assigned it as home:SplashScreen(); Here I have also implemented sharedPreferences now I am facing late initialisation error for:static late SharedPreferences pref; I can't understand how resolve it and where to…