简体   繁体   中英

How to get Native Splash Screen in Flutter?

Is there any way to remove default native Splash screen in Flutter. I want to show my own splash screen instead of default black screen.

Splash screen can't be provided through Flutter as iOS and Android both have a different way to show.

iOS: The default Flutter template includes an Xcode storyboard named LaunchScreen.storyboard that can be used to show your splash screen.

Android: The default Flutter project template includes a definition of a launch theme and a launched background. You can customize this by editing styles.xml , where you can define a theme whose windowBackground is set to the Drawable that should be displayed as the launch screen.

Source: https://flutter.dev/docs/development/ui/advanced/splash-screen

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM