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.
dev_dependencies: flutter_test: sdk: flutter 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: "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
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.0"
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.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|
|0.0.2||Dec 4, 2017|
|0.0.1||Dec 4, 2017|
We analyzed this package, and provided a score, details, and suggestions below.
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:
The description is too short.
Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.
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.
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
|Dart SDK||>=1.20.1 <2.0.0|