Is there any way for me to create different splash screen for multiple flavor in flutter?
I'll try to edit later for Android, but as for the iOS, here's the process.
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
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:
<key>UILaunchStoryboardName</key>
<string>${LAUNCH_SCREEN}</string>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With