これ見た stackoverflow.com
プラグイン
flutter_launcher_icons | Dart Package
YouTubeのやり方
pubspec.yaml
に編集
dependencies: flutter: sdk: flutter flutter_webview_plugin: "^0.1.2" shared_preferences: "^0.3.3" # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^0.1.0 # 追加 flutter_launcher_icons: "^0.2.0" dev_dependencies: flutter_test: sdk: flutter # 追加 flutter_launcher_icons: "^0.2.0" # 追加 flutter_icons: image_path: "icon/icon.png" android: true ios: true
ios: "Example-Icon"ってあるけどtrueにした
icon/icon.png
に用意しないといけないと思う。
そのあと
flutter pub get flutter pub pub run flutter_launcher_icons:main
を実行
ios/Runner/Assets.xcassets/
にある?
flutter create
は