Skip to content
pubscout

flutter_native_splash

2.4.8, released 6 months ago by jonhanson.net

Automatically generates native iOS, Android, and Web splash screens.

Flutter FavoriteWASM-ready
$ flutter pub add flutter_native_splash
Source repository

What it does

Reads a YAML configuration file to generate native launch screen code and assets for iOS, Android, and Web. It customizes the background color, branding images, and splash icons, supporting dark mode and Android 12+ specifications.

AI-written summary of version 2.4.8, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to customize the default white native splash screen on iOS and Android.
  • You need to support dark mode for the native startup screen.
  • You want to keep the splash screen visible while initializing app dependencies.

Skip it when

  • You prefer implementing native platform splash screen code manually in Xcode and Android Studio.
  • You are building a project that does not target mobile or web platforms requiring a native splash.

Strengths

  • Automates native asset generation and configuration across multiple platforms via a simple YAML file.
  • Supports specialized Android 12+ splash screen specifications and dark mode variants.
  • Provides programmatic control to keep the splash screen visible during app startup initialization.

Weaknesses

  • Requires running a CLI command to apply configuration changes.
  • Android 12+ requires separate configuration parameters and handles splash screens differently from older versions.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
9

Add configuration to pubspec.yaml or a separate flutter_native_splash.yaml file, then run 'dart run flutter_native_splash:create'.

import 'package:flutter_native_splash/flutter_native_splash.dart';

void main() {
  WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
  FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
  runApp(const MyApp());
}

Alternatives

Packages that do the same job and could replace flutter_native_splash.

Works with

Packages commonly used together with flutter_native_splash: ones it builds on, ones built on it, and its own family.