Skip to main content
Infidec Marketplace logo

Splash Screen

Change the native launch screen (including Android 12+) with flutter_native_splash, and the animated in-app splash and onboarding.

The Customer app has two splash stages:

  1. Native splash: shown by Android while Flutter starts. It is generated by flutter_native_splash.
  2. In-app splash: lib/screens/splash_screen.dart, the branded screen that initialises Firebase, loads settings and decides whether to show onboarding, sign-in or home.
In-app splash
The splash screen: logo centred on a light background

Native splash

apps/customer_app/pubspec.yaml
flutter_native_splash:
  color: "#F3FBF6"
  image: assets/brand/logo.png
  color_dark: "#0B1410"
  image_dark: assets/brand/logo.png
  android_12:
    image: assets/brand/splash_android12.png
    color: "#F3FBF6"
    icon_background_color: "#FFFFFF"
    image_dark: assets/brand/splash_android12.png
    color_dark: "#0B1410"
    icon_background_color_dark: "#FFFFFF"
  android: true
  ios: true
  fullscreen: false

Change the colours and images, then regenerate:

Terminal
cd apps/customer_app
dart run flutter_native_splash:create

In-app splash and onboarding

  • lib/screens/splash_screen.dart: logo, background doodle (lib/widgets/doodle.dart) and timing.
  • lib/screens/onboarding_screen.dart: the intro slides shown on first launch. Edit the titles and texts in lib/l10n/app_en.arb and app_hi.arb, or replace the illustrations in the screen file.

Next: Theme Colours & Font →

Something unclear or out of date? Tell us. contact@infidec.com