Files
swiftcontrol/flutter_native_splash.yaml
Jonas Acker 5cede7cffc Native launch screen: the brand disc on the app's background, light and dark
flutter_native_splash generates iOS (with a dark variant) and Android
(pre-12 and the 12+ splash API) from flutter_native_splash.yaml: BkTheme's
background (#F2F2F7 / #101318) with BkBrandMark's disc at 128 dp/pt in the
centre, rendered from the widget itself at 4x. iOS showed the app icon on
fixed white before.

The Flutter startup splash (LaunchMark) draws the same image at the same
size and place, instead of a bare spinner, so the hand-off doesn't move;
a spinner fades in under it only after 700 ms. On Android and iOS the
first frame is held (at most 300 ms) until that image is decoded, so no
frame goes by without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 12:28:51 +01:00

24 lines
858 B
YAML

# Native launch screen: the app's own background with the brand mark's disc,
# 128 dp/pt in the centre, light and dark. The Flutter startup splash
# (lib/main.dart, _LaunchMark) draws the same disc at the same place, so the
# hand-off to the first frame doesn't move. The PNGs are BkBrandMark rendered
# at 4x; re-render them if the mark changes.
# Regenerate: dart run flutter_native_splash:create
flutter_native_splash:
# BkTheme's background, light and dark.
color: "#F2F2F7"
color_dark: "#101318"
image: assets/splash/splash.png
image_dark: assets/splash/splash.png
android_12:
# 1152 px canvas, masked to its inner 768 px circle; the disc is 512 px.
image: assets/splash/splash_android12.png
image_dark: assets/splash/splash_android12.png
color: "#F2F2F7"
color_dark: "#101318"
android: true
ios: true
web: false