如何为Flutter应用程序配置iOS图标?

r1zhe5dt  于 2023-06-24  发布在  Flutter
关注(0)|答案(1)|浏览(184)

我正在使用flutter_launcher_icons为Flutter应用程序配置图标。
总的来说,除了一件事。iOS在主屏幕上显示正确的图标,但仍显示运行应用程序的标准Flutter图标。
主屏幕:

运行应用程序:

我该怎么解决?
My pubspec.yaml:

...
dev_dependencies:
  flutter_launcher_icons: ^0.13.1
  flutter_test:
    sdk: flutter
  flutter_lints: ^2.0.0
  integration_test:
    sdk: flutter

flutter:
  uses-material-design: true

flutter_launcher_icons:
  android: true
  ios: true
  remove_alpha_ios: true
  image_path: 'assets/icon/icon.png'

运行dart run flutter_launcher_icons后输出:

════════════════════════════════════════════
     FLUTTER LAUNCHER ICONS (v0.13.1)                               
  ════════════════════════════════════════════
  
• Creating default icons Android
• Overwriting the default Android launcher icon with a new icon
• Overwriting default iOS launcher icon with new icon
No platform provided

✓ Successfully generated launcher icons
cwtwac6a

cwtwac6a1#

如果您使用的是模拟器,请删除应用程序并重新安装,如果您使用的是真实的设备,设备reatart将清除此问题。

相关问题