我使用flutter_native_splash:^2.4.0,并为浅色和深色模式背景颜色提供适当的参数,但它没有改变
我写了这段代码:
flutter_native_splash:
image: assets/uShop_logo.png
color: "#ffffff"
color_dark: "#ffffff"
image_dark: assets/uShop_logo.png
icon_background_color: "#ffffff"
android: true
ios: true
fullscreen: true
web: false
android_12:
image: assets/uShop_logo.png
icon_background_color: "#ffffff"
image_dark: assets/uShop_logo.png
icon_background_color_dark: "#ffffff"
color: "#ffffff"
color_dark: "#ffffff"
您可以按照这里提到的那样简单地执行此操作:
flutter_native_splash:
color: "#ffffff"
image: "assets/logo.png"
color_dark: "#121212"
image_dark: "assets/logo.png"