Package selection guidance compiled from public package information, community data, and project usage.
A Flutter package that provides a programmatic API to control the splash screen on Android and iOS. It allows developers to show and hide the splash screen dynamically during app startup, enabling smooth transitions and custom splash logic. The package integrates seamlessly with native platforms and supports both iOS and Android without requiring additional configuration. It is ideal for apps needing delayed splash visibility or conditional splash handling based on app state.
Use cases
Dynamic splash control
App initialization delays
Conditional splash display
Onboarding integration
Custom splash transitions
Post-login splash management
Key features
Programmatic show/hide
Android and iOS support
Minimal setup
Native platform integration
No extra configuration needed
Smooth transition handling
Suitable for
Apps with onboarding flows
Apps requiring delayed splash
Developers managing splash timing
Cross-platform splash needs
Apps with complex startup logic
Considerations
Requires native platform setup for full functionality
Limited to splash screen only
Not suitable for complex UI overlays
May need additional styling for custom designs
Depends on correct initialization order
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
flutter_splash_screen
A splash screen API for flutter which can programatically hide and show the splash screen. Works on
Android and iOS.
Update the MainActivity.kt to use flutter_splash_screen via the following changes:
package org.devio.flutter.splashscreen.example
import android.os.Bundle
import io.flutter.embedding.android.FlutterActivity
import org.devio.flutter.splashscreen.SplashScreen // add
class MainActivity : FlutterActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
// SplashScreen.show(this)
// or enable full screen
SplashScreen.show(this, true)
super.onCreate(savedInstanceState)
}
}
Create launch_screen.xml file
Create a file called launch_screen.xml in app/src/main/res/layout (create the layout-folder if
it doesn't exist). The contents of the file should be the following:
Customize your launch screen by creating a launch_screen.png-file and placing it in an
appropriate mipmap-folder. Android automatically scales drawable, so you do not necessarily need
to provide images for all phone densities.
You can create splash screens in the following folders:
mipmap-ldpi
mipmap-mdpi
mipmap-hdpi
mipmap-xhdpi
mipmap-xxhdpi
mipmap-xxxhdpi
Add a color called primary_dark in app/src/main/res/values/colors.xml