AppStoreReady

Flutter Splash Screen with flutter_native_splash

Verified againstflutter_native_splash on pub.dev,flutter_native_splash README,Android splash screens,Apple HIG: Launchingon November 4, 2026.

A Flutter app shows a native splash while the engine loads, and it is white unless you change it. The flutter_native_splash package generates that screen for iOS, Android and web from a short YAML block and one dart run command. This guide uses version 2.4.8, the current release on pub.dev, and covers the Android 12 settings that most setups get wrong.

Install and generate

Add the package to pubspec.yaml. If you never call preserve() or remove() from Dart, the README says it can live in dev_dependencies instead, since it only generates native files.

dependencies:
  flutter_native_splash: ^2.4.8

Put the config either in pubspec.yaml under a top level flutter_native_splash: key, or in a separate flutter_native_splash.yaml in the project root. Then generate:

flutter pub get
dart run flutter_native_splash:create

# config kept somewhere else
dart run flutter_native_splash:create --path=path/to/flutter_native_splash.yaml

# undo everything the package generated
dart run flutter_native_splash:remove

Re-run create every time you change the config. The package rewrites launch_background.xml and styles.xml on Android, LaunchScreen.storyboard and Info.plist on iOS, and index.html on web, so hand edits to those files can be overwritten or break generation.

A working flutter_native_splash.yaml

flutter_native_splash:
  # Android 11 and lower, iOS, web
  color: "#0f0f11"
  image: assets/splash/logo.png
  color_dark: "#000000"
  image_dark: assets/splash/logo-dark.png
  android_gravity: center
  ios_content_mode: center

  # Android 12 and later ignore everything above
  android_12:
    color: "#0f0f11"
    image: assets/splash/logo-android12.png
    color_dark: "#000000"
    image_dark: assets/splash/logo-android12-dark.png
flutter_native_splash.yaml: logo on a solid color, with dark mode and an Android 12 block.
  • color and background_image are mutually exclusive. The README marks each as required and says to pick one.
  • image must be a PNG and should be sized for 4x pixel density. The package scales it down to the Android density buckets and to iOS @2x and @3x.
  • Every key has platform variants: color_android, image_ios, background_image_web and so on. A platform key overrides the general one.
  • fullscreen: true hides the Android status bar during the splash. Leave it off unless your first screen is also full screen, or the bar will pop in when the app appears.

The android_12 block

Android 12 replaced custom launch drawables with a system splash: one opaque window color, a centered icon, an optional icon background and an optional branding image. A background image is not supported there, and none of the top level keys apply. If you leave out android_12.image, Android shows your launcher icon.

android_12 keyPixel sizeSafe area
image without icon_background_color1152 x 1152Fit inside a 768 px circle
image with icon_background_color960 x 960Fit inside a 640 px circle
branding800 x 320Bottom of the screen
From the flutter_native_splash README. These are 4x versions of Android's 288 dp, 240 dp and 200 x 80 dp specs.

Android masks one third of the icon foreground, the same rule as adaptive icons. Anything outside the circle is invisible. Android's own design guidance also recommends against a branding image, so most apps skip it. For the platform side of this, see the Android 12 splash screen guide.

What the package does on iOS

On iOS the package writes your color and image into LaunchScreen.storyboard. The color is a single pixel PNG stretched to fill the screen, and the image is resized to @2x and @3x. Apple's guidance is that the launch screen should look nearly identical to your first screen and should not contain text, because it cannot be localized. A logo on your app's background color fits that rule. A tagline does not.

Keep the splash up while the app loads

By default the native splash is removed as soon as Flutter draws its first frame. To hold it while you read settings or restore a session, call preserve() with the binding and remove() when you are ready:

import 'package:flutter/material.dart';
import 'package:flutter_native_splash/flutter_native_splash.dart';

Future<void> main() async {
  final binding = WidgetsFlutterBinding.ensureInitialized();
  FlutterNativeSplash.preserve(widgetsBinding: binding);

  await loadSettings(); // your startup work

  runApp(const MyApp());
  FlutterNativeSplash.remove();
}

Keep that work short. Holding a static splash for several seconds reads as a hang, not a brand moment.

Which of our exported sizes to use

The Splash Screen Generator exports full screen PNGs: your background, logo and optional app name at real device resolutions. That is a fit for the background_image keys, not for image, which expects a logo that the package centers on a color.

KeyExport to useSize
background_image_iosiPhone 6.9"1320 x 2868
background_image_androidAndroid xxxhdpi1440 x 3200
android_12.imageNot a full screen export. Use your square logo file1152 x 1152 or 960 x 960

If you use a background image, comment out color and leave image unset, or the logo is drawn twice. Set android_12.color to the same background color so Android 12 and later show your logo on the same color your older-Android and iOS users see. Leave the app name field empty in the generator for this export, so the launch image has no text.

Make the launch image for your Flutter app

Set your background and logo, then export the iPhone 6.9" and Android xxxhdpi PNGs for background_image.

Open the Splash Screen Generator

Common display bugs

  • Logo cropped into a circle on Android 12. The image filled its square. Shrink the artwork so it sits inside the 768 px circle of the 1152 px canvas.
  • Old splash still showing on iOS. iOS caches launch screens. Run flutter clean, delete the app, restart the device and reinstall.
  • White flash between splash and app. Either the iOS cache above, or startup work running after the splash is gone. Use preserve() and remove(), and make your first screen's background the same color as the splash.
  • Dark splash while the app is in light mode. The splash runs before Flutter, so it follows the system setting. It cannot read an in-app theme toggle. See the dark mode splash guide.
  • No splash on Android 12 when launched from Android Studio or a notification. The README notes both: launch from the home screen icon to test. Some non-Google launchers also draw it incorrectly.
  • "A splash screen was provided to Flutter, but this is deprecated." Remove the old io.flutter.embedding.android.SplashScreenDrawable meta-data entry from AndroidManifest.xml.
  • AAPT error: `windowSplashScreenBackground` not found. Your Android build is not configured to compile against Android 12 or later.
Exports are free one size at a time. Exporting every iOS and Android size as one zip is part of the $10 one-time unlock for an app. The splash generator processes your logo in the browser.

Related

Frequently asked questions

Do I need flutter_native_splash in dependencies or dev_dependencies?

Use `dependencies` if your Dart code calls `FlutterNativeSplash.preserve()` or `remove()`. If you only run the generator, `dev_dependencies` is enough, because the output is plain native files.

Why does my Android 12 splash ignore my background image?

Android 12 and later only support a solid window color, a centered icon and an optional branding image. Configure that screen in the `android_12` section; the top level `background_image` only applies to Android 11 and lower, iOS and web.

Can flutter_native_splash show a GIF or Lottie animation?

The package FAQ says GIFs work on web only and Lottie is not supported. For motion on mobile, keep the native splash static and animate in your first Flutter screen.

What size should the flutter_native_splash image be?

The general `image` should be a PNG sized for 4x density. For `android_12.image`, use 1152 x 1152 px with the artwork inside a 768 px circle, or 960 x 960 px inside a 640 px circle if you set an icon background color.