after running command run second command as belowįlutter pub run flutter_launcher_icons:main -f pubspec.yaml save the file and run flutter pub get on terminal.i have placed app icon inside icon folder and now i have app icon path as assets/icon/icon.png i will recommend to user 1024x1024 app icon size. Save the file and run flutter pub get on terminal.Ĭreate a folder assets in the root of the project in folder assets also create a folder icon and place your app icon inside this folder. add this plugin in pubspec.yaml file in project root directory.we can use this plugin to set the app icon in flutter. I found one plugin to set app icon in flutter named flutter_launcher_icons. overwriting the default android launcher icon with a new iconīest & recommended way to set app icon in flutter.881msĮ:\androidstudioprojects\flutterproject\newsflutter\news_flutter>flutter pub run flutter_launcher_icons:main Running "flutter pub get" in news_flutter. Publish_to: 'none' # remove this line if you wish to publish to pub.dev # the following line prevents the package from being accidentally published to add your required images in asstes folder and pubspec.yaml file as below. add dependencies of flutter_luncher_icons in pubspec.yaml file.you can find this plugin from here.Ģ.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |