That’s how your LaunchScreen is defined in Info.plist.
Open XCode, add User-Defined Setting.
By opening the build settings and clicking the tiny + button.
Add a variable, like LAUNCH_SCREEN.
Now we will create another LaunchScreen, by creating new LaunchScreen, like called LaunchScreenFlavor2.
Once you create the new launch screen, and assign LAUNCH_SCREEN variable to that storyboards, scroll to the beginning of my answer, and give the variable in Info.plist. Like:
2
Answers
on main.dart
then in MyApp class
I’ll try to edit later for Android, but as for the iOS, here’s the process.
That’s how your LaunchScreen is defined in Info.plist.
Open XCode, add User-Defined Setting.
By opening the build settings and clicking the tiny + button.
Add a variable, like LAUNCH_SCREEN.
Now we will create another LaunchScreen, by creating new LaunchScreen, like called LaunchScreenFlavor2.
Once you create the new launch screen, and assign LAUNCH_SCREEN variable to that storyboards, scroll to the beginning of my answer, and give the variable in Info.plist. Like: