Contents
Coding With Dhrumil

HomeArticles

How to Create a Flutter Splash Screen That Loads Fast

By Dhrumil PatelPublished 4 min read

A splash screen is the first thing users see when they open your app, so it sets the tone for the entire experience. In Flutter, you actually have two splash screens to think about: the native launch screen that the operating system shows while your Flutter engine warms up, and an optional in-app splash widget that you control with Dart code.

This article walks through both, with concrete timings and code patterns you can copy. We will cover how to configure the native splash for Android and iOS, when a Dart splash screen is worth the extra frame, and how to avoid the blank-screen flash that makes apps feel slow.

Why Flutter Shows a Blank Screen First

When your app launches, the Android or iOS runtime displays a launch screen defined by the platform, not by Flutter. On Android this is the windowBackground of your launch theme; on iOS it is the LaunchScreen storyboard. Meanwhile, the Flutter engine boots, loads the Dart VM, and runs main(). On a mid-range phone this cold-start sequence typically takes 300–800 ms, and on older devices it can exceed 1.2 seconds. Until the first Flutter frame is rendered, the native launch screen stays visible, so it must look intentional.

If you leave the default configuration, Android shows a plain white or black window and iOS shows a blank storyboard. That flash is what users perceive as slow. The fix is to replace the native launch screen with your own branding: a solid background colour, a centred logo, and a matching status bar colour. That way the transition from native launch to Flutter UI feels seamless.

  • Cold start on mid-range Android: 300–800 ms typical
  • Cold start on low-end devices: 1–1.5 s
  • Warm start after process kill: 150–400 ms
  • First Flutter frame adds 1–3 frames of delay after engine init

Configuring the Native Launch Screen on Android

In android/app/src/main/res/values/styles.xml, define a LaunchTheme that sets android:windowBackground to a drawable. Create that drawable in drawable/launch_background.xml with a layer-list containing your background colour and a bitmap logo. Then in AndroidManifest.xml, set android:theme="@style/LaunchTheme" on your main activity. After the first Flutter frame, Flutter automatically swaps to NormalTheme, so the native splash disappears exactly when your UI is ready.

Keep the logo small: a 200–300 px wide PNG at mdpi scale is enough, because the drawable will scale. Avoid large background images; a solid colour or a simple gradient loads fastest. Also set android:windowFullscreen or adjust windowLightStatusBar so the status bar icons remain readable against your splash colour.

350Flagship (2023)600Mid-range (2021)900Budget (2019)1300Low-end (2017)
Typical cold-start duration by device tier (milliseconds)
Splash screen approaches compared
ApproachWhere it runsTypical durationCustomisableBest for
Native launch screenAndroid/iOS OS300–800 ms (cold start)Colour, static logoEvery app, required for iOS
Dart splash widgetFlutter engine500–1500 msAnimations, async loadingAuth checks, data prefetch
Hybrid (native + Dart)Both800–2000 ms totalFull controlBranded experience with loading
No native configOS defaultSame as cold startNoneNever recommended
Animated Dart onlyFlutter engine1000–3000 msFull animationRarely; adds perceived delay

Configuring the Launch Screen on iOS

iOS uses LaunchScreen.storyboard in ios/Runner/Base.lproj. Open it in Xcode and add a UIImageView with your logo centred, plus a background colour that matches your brand. Apple requires a launch screen, and apps without one are rejected. Keep the storyboard static: no animations, no code, and no network calls. The storyboard is rendered by the system before your Flutter engine starts, so it must be self-contained.

A common pitfall is using a storyboard that stretches the logo on different screen sizes. Use constraints (centre X, centre Y, fixed width and height) rather than absolute frames. Test on an iPhone SE and an iPhone 15 Pro Max to confirm the logo stays sharp and centred.

Adding a Dart Splash Screen Widget

If you need to load data, check authentication, or initialise services before showing the main UI, a Dart splash widget is useful. Create a StatefulWidget that displays your logo and runs your init logic in initState. When the work completes, navigate to the home screen with Navigator.pushReplacement. Keep the splash visible for at least 500 ms and at most 2 seconds; anything longer feels like a delay, not a feature.

To avoid a jarring transition, use the same background colour and logo position as the native launch screen. The user should not be able to tell where the native splash ends and the Flutter splash begins. If you are deciding between a simple stateless splash and a stateful one that manages loading, read StatelessWidget vs StatefulWidget: Which One Should You Pick? for a clear decision framework.

  • Show splash for 500–1500 ms depending on real load time
  • Use pushReplacement so users cannot navigate back to the splash
  • Match colours and logo position with the native launch screen
  • Avoid heavy work in the splash; move it to a background isolate if possible

Timing and Performance Numbers That Matter

A splash screen should never be the reason the app feels slow. Measure your cold start with `flutter run --profile` and check the time from process start to the first frame. If the native launch screen lasts more than a second on a mid-range device, your engine initialisation or main() work is the bottleneck. Defer non-critical initialisation until after the first frame using WidgetsBinding.instance.addPostFrameCallback.

The Dart splash itself should be nearly free: a Container with a colour and an Image.asset. If you see jank during the splash, the image may be too large. Decode images at the display size using cacheWidth or cacheHeight. A 1000×1000 PNG decoded at full size can take 30–60 ms and several megabytes of memory; caching at 300×300 cuts that to a few milliseconds.

Common Pitfalls and How to Avoid Them

The most common mistake is an animated Dart splash that runs for three seconds. Users do not want to wait; they want their content. Another is mismatched colours between the native launch screen and the Flutter splash, which causes a visible flash. A third is forgetting to set the status bar style, leaving dark icons on a dark background.

If your app has a complex first screen with many widgets, the time to first frame can grow. Keep the initial route lightweight and push heavy screens after the splash. For perspective on how widget count affects layout time, see How Many Widgets Does a Typical Flutter Screen Really Use?. Also ensure you test on a real low-end device, not just a flagship emulator.

  • Do not block the main thread in initState
  • Use the same image asset for native and Dart splash to avoid re-decoding
  • Set the status bar colour in both native theme and Flutter AppBar
  • Test cold start on a device with 2 GB RAM or less

Key points

  • Always configure a native launch screen; it is what users see during engine startup.
  • Keep the Dart splash under 1.5 seconds and only use it for real initialisation work.
  • Match colours and logo between native and Dart splash to avoid a visible flash.
  • Measure cold start in profile mode and optimise image decoding with cacheWidth.

Flutter Screen Widget and Cost Estimator

Estimate the number of widgets in a screen and a rough development-hour figure from your component counts. Adjust the fields to see how each UI area affects the total effort.

Calculate

Dhrumil Patel

Editor and Flutter contributor

Writes practical Flutter tutorials focused on widgets, layout and animation. Enjoys breaking large UI problems into small, testable pieces and explaining them clearly to beginners.

Related articles

Handling Configuration Changes in Kotlin Without Losing State

Explains rotation and process death scenarios and which save and restore pattern fits each.

Room Database Migration Checklist Before You Ship

A step-by-step pre-release checklist covering schema versions, migration tests and fallback rules.

Kotlin Coroutines on Android: Common Mistakes With Numbers

Explains dispatcher choice, timeout values and cancellation patterns that avoid leaks.