Before your first Flutter frame draws, the user sees a native screen: a launch storyboard on iOS and a system splash on Android. Out of the box it is a white page, which looks broken in dark mode and flashes against a colored first screen. flutter_native_splash generates the native pieces for both platforms from one config.
This post covers the config, the rules each platform sets, and the one API call that is easy to misuse. It belongs to building a Flutter app with Claude Code.
First, what each platform wants
The two platforms have different ideas of what this screen is for. Design for both.
Apple calls it a launch screen, not a splash screen. From the Human Interface Guidelines:
- “Design a launch screen that’s nearly identical to the first screen of your app or game.”
- “Avoid including text on your launch screen, even if your first screen displays text.”
- “Don’t advertise. The launch screen isn’t a branding opportunity.” Don’t “include logos or other branding elements unless they’re a fixed part of your app’s first screen.”
- “A launch screen’s sole function is to enhance the perception of your experience as quick to launch and immediately ready to use.”
Android 12 and later show a system splash for every app. Google: “Starting in Android 12, apps launch with a system splash screen” with your app icon on a background. It appears on a cold or warm start and “never shows during a hot start.” The window background is “a single opaque color.”
So the safe design is plain: your first screen’s background color, and on Android a centered icon. Logos with taglines, gradients and photos fight both platforms.
Install
dependencies:
flutter_native_splash: ^2.4.8
That was the current version when this was written. If you do not need the preserve() and remove() methods below, the package says you can put it in dev_dependencies instead.
Configure
Put the config in pubspec.yaml or a separate flutter_native_splash.yaml:
flutter_native_splash:
color: "#F6F1E9"
image: assets/splash/logo.png
color_dark: "#14161A"
image_dark: assets/splash/logo_dark.png
android_12:
color: "#F6F1E9"
image: assets/splash/android12_icon.png
icon_background_color: "#F6F1E9"
color_dark: "#14161A"
icon_background_color_dark: "#14161A"
color is required. image is optional; for Apple’s guidance, use it only if the same mark sits in the same place on your first screen. You can also add branding for a small image at the bottom, but Google’s own docs say “the design guidelines recommend against using a branding image” on Android 12+.
Then generate the native files:
dart run flutter_native_splash:create
Run it again after any config change. To undo everything, dart run flutter_native_splash:remove.
Android 12 icon sizes
The android_12 image is not your old splash image. It is masked into a circle, like an adaptive icon. The package gives pixel sizes:
- With an icon background: “960×960 pixels, and fit within a circle 640 pixels in diameter.”
- Without: “1152×1152 pixels, and fit within a circle 768 pixels in diameter.”
These match Google’s dp specs (240x240 dp in a 160 dp circle, and 288x288 dp in a 192 dp circle) at 4x density. Anything outside the circle disappears. If you leave android_12.image out, Android uses your launcher icon, which is often the best choice. Make sure that icon is right first (see Flutter app icons with flutter_launcher_icons).
Also from the package: on Android 12+ “a background image is not supported.”
Hold the splash while you load
By default the native splash disappears when Flutter draws its first frame. If you need a moment to read settings or check auth, you can hold it:
import 'package:flutter_native_splash/flutter_native_splash.dart';
Future<void> main() async {
final widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
final prefs = await SharedPreferences.getInstance();
runApp(MyApp(prefs: prefs));
FlutterNativeSplash.remove();
}
Use this carefully. Apple: “People want to start interacting with your app or game right away, and sometimes they don’t want to wait more than a couple of seconds.” Google likewise says the splash should be dismissed only when the app “is stable from a visual standpoint, so no additional spinners are needed.”
Rules of thumb:
- Hold only for work your first screen truly needs (local settings, auth state).
- Never hold for network calls. Show the first screen and load data inside it.
- Always call
remove(), including on error paths, or users get stuck on the splash.
Light and dark mode
Set color_dark and image_dark (and the android_12 dark keys). The splash follows the system setting, not your app’s in-app theme toggle. The package is direct about this: “it is impossible to control light/dark settings of the splash from app settings.” If your app offers a manual theme switch, pick splash colors that work next to both.
Fullscreen
fullscreen: true hides the Android notification bar while the splash shows (it defaults to false). The package notes iOS already hides the bar on the launch screen, so the setting does not apply there. Only use it on Android if your first screen is also fullscreen, or the bar will pop in when Flutter takes over.
Flavors
If you build dev and prod flavors, you can have a different splash per flavor. Name config files flutter_native_splash-<flavor>.yaml and run:
dart run flutter_native_splash:create --flavors development,production
Or --all-flavors (-A) to generate all of them. See Flutter flavors for dev and prod builds for the rest of that setup.
Testing gotchas
The package lists a few Android 12+ cases where the splash does not look like you expect, and none of them are bugs in your code:
- “The splash screen may not appear when you launch the app from Android Studio on API 31.” Launch from the home screen to test.
- “The splash screen does not appear when you launch the app from a notification.”
- “non-Google launchers do not display the launch image correctly” in some reports.
On iOS, the package FAQ blames a flash of the wrong splash on an iOS caching bug. Its fix: uninstall the app, power the device off and on, and reinstall before judging your changes.
A quick test pass:
- Cold start from the home screen on Android 12+ and an older Android version.
- Cold start on iOS in light and dark mode.
- Check the handoff: there should be no flash between the native splash and the first Flutter screen.
- Time it on a slow device.
Add these to your mobile app QA checklist.
Splash vs onboarding
A splash is not a welcome screen. If you want to show your brand, a tagline or a value proposition, do it in the first onboarding screen, which is real UI that users can read and skip. See mobile app onboarding best practices. For what App Review expects from your design overall, see App Store guideline 4.0 design.
MobileKit’s design skill sets the splash colors from the same tokens as the first screen, so the two always match.
Sources read on the day this post was written: flutter_native_splash on pub.dev, Android: Splash screens and Apple HIG: Launching.