【问题标题】:launch_background.xml color to hex colorlaunch_background.xml 颜色到十六进制颜色
【发布时间】:2021-03-08 01:12:18
【问题描述】:

我想使用 flutter 框架制作我的启动画面 我要做的就是将初始屏幕颜色从白色更改为十六进制的 003A55 enter image description here

【问题讨论】:

    标签: xml flutter-layout splash-screen launch-screen android-xml-attribute


    【解决方案1】:

    你可以使用包https://pub.dev/packages/flutter_native_splash
    第 1 步:在pubspec.yaml 添加设置

    dev_dependencies:
      flutter_test:
        sdk: flutter
      flutter_native_splash: any
    
    flutter_native_splash:
      color: 003A55
    

    第二步:运行命令flutter pub run flutter_native_splash:create

    工作演示

    【讨论】:

      猜你喜欢
      • 2019-06-16
      • 1970-01-01
      • 2019-10-29
      • 2014-04-25
      • 1970-01-01
      • 2018-08-26
      • 2013-03-16
      • 2012-11-04
      • 2015-04-19
      相关资源
      最近更新 更多