flutter_launcher_icons 0.2.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 91

Flutter Launcher Icons

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.

✨ What's New

Version 0.2.0 (18th January 2018)
  • Ability to add new launcher icons without removing the old existing launcher icon

🔍 Guide

  1. Add dependency to your Flutter project's pubspec.yaml below any existing dependencies
dev_dependencies: 
  flutter_test:
    sdk: flutter
    
  flutter_launcher_icons: "^0.2.0"
  1. Within the same pubspec.yaml file, add flutter_icons config section
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.
  1. Run the command to generate the icons
flutter pub get
flutter pub pub run flutter_launcher_icons:main

👀 Example

Video Example

Special thanks

Thanks to Brendan Duncan for the underlying image package to transform the pics.

Changelog

0.2.0 (18th January 2018)

  • Ability to create new launcher icons without replacing the old ones added (#6)
  • Fixed issue with launcher icons for iOS not correctly being set

0.0.5

  • Quick Fix on if statement

0.0.4

  • Fixing strong mode error

0.0.3

  • Adding flutter as a dependency so its listed as a flutter package.

0.0.2

  • Fix Doc typo

0.0.1

  • Initial version, Resizes Icon to Android sizes only.

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  flutter_launcher_icons: "^0.2.0"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:flutter_launcher_icons/android.dart';

import 'package:flutter_launcher_icons/ios.dart';
        
Version Uploaded Documentation Archive
0.2.0 Jan 24, 2018 Go to the documentation of flutter_launcher_icons 0.2.0 Download flutter_launcher_icons 0.2.0 archive
0.1.0 Dec 5, 2017 Go to the documentation of flutter_launcher_icons 0.1.0 Download flutter_launcher_icons 0.1.0 archive
0.0.5 Dec 4, 2017 Go to the documentation of flutter_launcher_icons 0.0.5 Download flutter_launcher_icons 0.0.5 archive
0.0.4 Dec 4, 2017 Go to the documentation of flutter_launcher_icons 0.0.4 Download flutter_launcher_icons 0.0.4 archive
0.0.3 Dec 4, 2017 Go to the documentation of flutter_launcher_icons 0.0.3 Download flutter_launcher_icons 0.0.3 archive
0.0.2 Dec 4, 2017 Go to the documentation of flutter_launcher_icons 0.0.2 Download flutter_launcher_icons 0.0.2 archive
0.0.1 Dec 4, 2017 Go to the documentation of flutter_launcher_icons 0.0.1 Download flutter_launcher_icons 0.0.1 archive

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
83 / 100
Health:
Code health derived from static analysis. [more]
100 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
91

Platforms

Detected platforms: Flutter, other

Platform components identified in package: io.

Suggestions

  • 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: main.dart, example.dart or you could also use flutter_launcher_icons.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.20.1 <2.0.0
dart_config ^0.5.0 0.5.0
image ^1.1.29 1.1.29
Transitive dependencies
archive 1.0.33
args 1.3.0
browser 0.10.0+2
charcode 1.1.1
collection 1.14.5
convert 2.0.1
crypto 2.0.2+1
matcher 0.12.1+4
path 1.5.1
petitparser 1.7.0
source_span 1.4.0
stack_trace 1.9.1
string_scanner 1.0.2
typed_data 1.1.5
unittest 0.11.7 0.12.4+1
xml 2.6.0 3.0.0-alpha
yaml 2.1.13
Dev dependencies
test ^0.12.0