feat(flutter): 接入 flutter_native_splash 原生开屏

This commit is contained in:
Zhou Weidong committed 2026-10-20 18:51:28 +08:00
1 parent 7c2fd090e0
commit 983e99a4b6
22 files changed
+73 -43

No files matched your search

+14
View File
@@ -65,6 +65,7 @@ dev_dependencies:
flutter_lints: ^6.0.0
flutter_launcher_icons: ^0.14.4
shared_preferences_platform_interface: 2.4.2
flutter_native_splash: ^2.4.8
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
@@ -120,3 +121,16 @@ flutter_launcher_icons:
adaptive_icon_background: "#C4322A"
adaptive_icon_foreground: assets/icon/fruitshorts.png
remove_alpha_ios: true
# 修改以下开屏配置后,必须重新执行:
# dart run flutter_native_splash:create
flutter_native_splash:
color: "#FFF8F0"
color_dark: "#FFF8F0"
android: true
ios: true
web: false
android_12:
color: "#FFF8F0"
color_dark: "#FFF8F0"
icon_background_color: "#FFF8F0"