Home > other >  Flutter: How to show splash screen based on theme data saved using shared preferences?
Flutter: How to show splash screen based on theme data saved using shared preferences?

Time:12-28

Currently the splash screen is showed according to the device theme and rest of the app according to user selected theme, but I want to show the splash screen according to the selected theme by the user (which I do save in shared preferences).

CodePudding user response:

It's not possible.

Splash screen is handled by the system, and you app isn't launched yet, so no code to load user preferences could be run.

  • Related