AppStoreReady

Animated Splash Screen in Flutter

Verified againstflutter_native_splash README,Flutter engine: supported image formats (dart:ui),Flutter source: AnimationController,Android splash screens,Apple HIG: Launchingon November 4, 2026.

An animated Flutter splash is two screens that look like one: a static native splash the operating system draws before Flutter starts, then a Flutter widget that plays the motion. The trick is making the native screen match the first frame of your animation exactly, so the handoff is invisible. Below is the native config, a complete Dart intro screen, and where an exported GIF fits.

Why the native splash cannot animate

The native splash is on screen before the Flutter engine has loaded, so no Dart code can run on it. On iOS it is a launch storyboard, which is static by design: Apple's guidance is that it should look nearly identical to your first screen and is not a place for artistic expression. The flutter_native_splash FAQ is direct about it too: GIFs are supported on web only, and Lottie is not supported.

Android 12 and later are the one exception. The system splash icon can be an AnimatedVectorDrawable set through windowSplashScreenAnimatedIcon. Android's spec for it:

RequirementValue
FormatAnimatedVectorDrawable XML
Icon area432 dp, with the visible inner two thirds at 288 dp
Recommended duration on phones1,000 ms or less
Delayed start166 ms maximum
BackgroundOne opaque window color
From Android's splash screen documentation.

flutter_native_splash documents image files for the android_12.image slot, not AVDs, so an animated icon means editing the Android theme yourself. It also only covers Android 12 and later. The approach below works on every platform.

The pattern: static frame one, then Flutter

  1. The native splash shows your background color and, if the animation starts with it visible, your logo in its starting position.
  2. Flutter draws its first frame: an intro widget whose first frame is pixel for pixel the same as the native splash. The native splash is removed at this moment, so nothing visibly changes.
  3. The intro plays its animation, then replaces itself with your home screen.

Most entrance styles start from an empty background. In Fade In the logo rises from transparent, in Drop In it falls from above the screen, and in Ink Bloom it grows from nothing. For those, a native splash with only the background color is the matching frame. Styles that start with the screen covered, such as Lattice Dissolve and Curtain Drift, need a native splash that shows that cover instead, and print styles such as Screen Build start on your paper tone rather than your background color. Check the first frame of the exported GIF to be sure.

Native side: color only

flutter_native_splash:
  color: "#0f0f11"
  android_12:
    color: "#0f0f11"
    # Without an image, Android 12+ shows your launcher icon here.
    # The README's own sample points this at a blank PNG.
    image: assets/splash/blank.png
flutter_native_splash.yaml for an intro that starts on a plain background.

Run dart run flutter_native_splash:create after editing. Note what the comment says: on Android 12 and later the system shows an icon unless you give it one, so a fully plain splash needs a transparent image in that slot. The alternative is to accept the icon and start your Flutter animation from the logo at that size and position.

Flutter side: the intro screen

This intro fades and scales a logo in over 1.6 seconds, the same default duration the generator uses, with an ease-out cubic curve. The Scaffold background must be the exact color from the YAML above.

import 'package:flutter/material.dart';

void main() => runApp(const MaterialApp(home: SplashIntro()));

class SplashIntro extends StatefulWidget {
  const SplashIntro({super.key});

  @override
  State<SplashIntro> createState() => _SplashIntroState();
}

class _SplashIntroState extends State<SplashIntro>
    with SingleTickerProviderStateMixin {
  late final AnimationController _controller = AnimationController(
    vsync: this,
    duration: const Duration(milliseconds: 1600),
  );
  late final Animation<double> _curve =
      CurvedAnimation(parent: _controller, curve: Curves.easeOutCubic);

  @override
  void initState() {
    super.initState();
    _controller.forward().whenComplete(() {
      if (!mounted) return;
      Navigator.of(context).pushReplacement(
        MaterialPageRoute(builder: (_) => const HomeScreen()),
      );
    });
  }

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: const Color(0xFF0F0F11), // same as the native splash
      body: Center(
        child: FadeTransition(
          opacity: _curve,
          child: ScaleTransition(
            scale: Tween<double>(begin: 0.9, end: 1.0).animate(_curve),
            child: Image.asset('assets/splash/logo.png', width: 160),
          ),
        ),
      ),
    );
  }
}

class HomeScreen extends StatelessWidget {
  const HomeScreen({super.key});

  @override
  Widget build(BuildContext context) =>
      const Scaffold(body: Center(child: Text('Home')));
}

If you need to load data, start it in initState and navigate when both the animation and the load have finished. Android recommends keeping a splash animation under 1,000 ms on phones, so treat 1.6 seconds as the upper end and shorten it if your app starts fast.

Design the intro animation first

Pick a style, preview it with your logo, and export the GIF as the reference for your Flutter AnimationController.

Open the Splash Screen Generator

Playing an exported GIF or WebP instead

Flutter's image decoders support Animated GIF and Animated WebP, so Image.asset('assets/splash/intro.gif') will play a GIF from the generator in your intro screen. It works, with three limits worth knowing before you ship it:

  • Resolution. The exported GIF is rendered from the 1080 x 2400 frame and scaled down to 360 x 800 to keep the file small. Shown full screen on a modern phone it will look soft.
  • Looping. The GIF loops. It has 30 motion frames plus 8 hold frames on the final pose, so at the default 1.6 second duration you need to navigate away after roughly two seconds or the animation restarts.
  • Format. With print mode on, the generator also exports WebP, which keeps halftone grain that GIF stores badly. Both formats decode in Flutter.

For a production intro, the AnimationController version is sharper and smaller. Use the GIF as the motion reference you rebuild from, and the static PNG (the final frame) to check that your last Flutter frame lands in the right place. The PNG sizes are listed in the splash screen sizes guide: for a full screen comparison use iPhone 6.1" at 1179 x 2556 or Android xxhdpi at 1080 x 2400.

The first six animation styles work without an account. The other ten unlock with a free account. 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.

Related

Frequently asked questions

Can I use a Lottie file as my Flutter native splash?

No. The native splash is drawn before Flutter runs, and `flutter_native_splash` does not support Lottie. Play the Lottie in your first Flutter screen, on the same background color as the native splash.

Does Image.asset play animated GIFs in Flutter?

Yes. Flutter's built-in decoders handle GIF, Animated GIF, WebP and Animated WebP. A GIF exported from the generator loops, so time your navigation to the clip length rather than waiting for it to stop.

How do I avoid a jump between the native splash and my animation?

Make the first Flutter frame identical to the native splash: same background color, and the logo at the same size and position, or absent if the animation starts empty. Any difference shows up as a flash at handoff.

How long should a Flutter splash animation be?

Android recommends 1,000 ms or less for a splash icon animation on phones, and Apple wants launch to feel instant. Somewhere between 600 ms and 1.6 seconds is reasonable for an intro, shorter if your app is ready sooner.