我使用flutter_flavorizr:^2.1.6包我想知道如何更新我的应用程序图标

lvmkulzt  于 2023-05-29  发布在  Flutter
关注(0)|答案(1)|浏览(154)

这是我的配置文件请帮助pubspec.yaml文件我已经添加了正确的路径为我的图标,仍然没有任何线索如何生成图标。
风味:iBEProd:app:name:“iBreastExam”android:applicationId:... firebase:config:“.android/prod/google-services.json”ios:bundleId:... iBEDev:app:name:“iBE Dev”android:applicationId:... firebase:配置:... ios:bundleId:...子宫颈产品:app:name:“Cervaical”android:“assets/icons/cervaical_icon.png”ios:“assets/icons/cervaical_icon.png”android:applicationId:... firebase:config:“.android/prod/google-services.json”ios:bundleId:... cervaicalDev:app:name:“Cervaical Dev”android:“assets/icons/cervaical_icon.png”ios:“assets/icons/cervaical_icon.png”android:applicationId:... firebase:config:“.android/dev/google-services.json”ios:bundleId:...

dhxwm5r4

dhxwm5r41#

根据文件。要为每种风格设置单独的应用程序图标,您可以简单地为Android和iOS的每种风格类型定义icon属性。
示例:

flavors:
    development:
      app:
        name: "Development Flavor"

      android:
        applicationId: "com.dev.flavorsdemo"
        icon: "assets/path-to-your-icon"

      ios:
        bundleId: "com.dev.flavorsdemo"
        buildSettings:
          # Development Team is visible in the apple developer portal 
          DEVELOPMENT_TEAM: YOURDEVTEAMID 
          PROVISIONING_PROFILE_SPECIFIER: "Dev-ProvisioningProfile"
        icon: "assets/path-to-your-icon"

有关详细文档,请访问此处

相关问题