A command-line tool to quickly generate launcher icons for both iOS and Android platforms within any Flutter project.
Note: The tool will replace the existing default launcher icons for Flutter projects and so if you wish to keep them, please make a backup before running this tool.
Added extra iOS icon size (1024x1024)
dev_dependencies: flutter_test: sdk: flutter flutter_launcher_icons: "^0.2.1"
dev_dependencies: flutter_test: sdk: flutter flutter_launcher_icons: "^0.2.1" flutter_icons: image_path: "icon/icon.png" android: true ios: "Example-Icon"
#### Attributes: image_path: The location of the icon image file which you want to use as the app launcher icon android/ios: True / False - Set as true if you want the icons generated for that platform to replace the existing launcher icon OR android/ios: <icon name> - Alternatively, enter an icon name if you wish to use a new launcher icon in the project whilst keeping the old one.
flutter pub get flutter pub pub run flutter_launcher_icons:main
Note: This is showing v0.0.5.
Thanks to Brendan Duncan for the underlying image package to transform the pics.
Add this to your package's pubspec.yaml file:
dependencies: flutter_launcher_icons: "^0.2.1"
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:flutter_launcher_icons/android.dart'; import 'package:flutter_launcher_icons/ios.dart';
|0.2.1||Apr 25, 2018|
|0.2.0||Jan 24, 2018|
|0.1.0||Dec 5, 2017|
|0.0.5||Dec 4, 2017|
|0.0.4||Dec 4, 2017|
|0.0.3||Dec 4, 2017||failed|
|0.0.2||Dec 4, 2017||failed|
|0.0.1||Dec 4, 2017||failed|
We analyzed this package on Apr 25, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Detected platforms: Flutter, other
Platform components identified in package:
Package is pre-v1 release.
While there is nothing inherently wrong with versions of
0.*.*, it usually means that the author is still experimenting with the general direction API.
The description is too long.
Search engines will display only the first part of the description. Try to keep it under 180 characters.
Maintain an example.
Create a short demo in the
example/directory to show how to use this package. Common file name patterns include:
example.dartor you could also use
Fix analysis and formatting issues.
Analysis or formatting checks reported 1 hint.
Strong-mode analysis of
lib/ios.dartgave the following hint:
line: 109 col: 10
'JSON' is deprecated and shouldn't be used.
|Dart SDK||>=1.20.1 <2.0.0|