原生 Splash 深色模式颜色不变

问题描述 投票:0回答:1

我使用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 dart splash-screen
1个回答
0
投票

您可以按照这里提到的那样简单地执行此操作:

flutter_native_splash:
  color: "#ffffff"
  image: "assets/logo.png"
  color_dark: "#121212"
  image_dark: "assets/logo.png"
© www.soinside.com 2019 - 2024. All rights reserved.