flutter_native_splash
2.4.8, released 6 months ago by jonhanson.net
Automatically generates native iOS, Android, and Web splash screens.
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.
- fluttersdk_wind
Utility‑first Tailwind‑style styling for Flutter using className strings.
85Compare - statusbarz
Dynamically change the status bar color based on the background or current route.
48Compare - flutter_splash_screen
A splash screen API for Flutter which can programmatically hide and show the splash screen.
40Compare - native_splash_screen
Fully configurable native splash screen plugin for Linux, Windows, and macOS apps.
39Compare
Works with
Packages commonly used together with flutter_native_splash: ones it builds on, ones built on it, and its own family.
- yamlflutter_native_splash depends on itA Dart library for parsing YAML documents into Dart data structures.
- xmlflutter_native_splash depends on itFull-featured XML and XPath library for DOM parsing, SAX streaming, and fluent building.
- htmlflutter_native_splash depends on itA Dart implementation of an HTML5 parser for strings and bytes.
- argsflutter_native_splash depends on itLibrary for parsing raw command-line arguments into options and values using GNU and POSIX styles.
- imageflutter_native_splash depends on itPure Dart library to load, manipulate, encode, and decode various image formats.
- universal_ioflutter_native_splash depends on itCross-platform dart:io implementation with browser support for HttpClient and other APIs
- ansicolorflutter_native_splash depends on itAn xterm-256 color support library for changing terminal text colors and backgrounds.