flutter_launcher_icons 0.2.1

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 95

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.1 (25th April 2018)

Added extra iOS icon size (1024x1024)

  • Fixed iOS default icon name (Thanks to PR #25 - Thank you!)
  • Fixed issue #10 where the creation of the icons was failing due to the target folder not existing

🔍 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.1"
  1. Within the same pubspec.yaml file, add flutter_icons config section
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.
  1. Run the command to generate the icons
flutter pub get
flutter pub pub run flutter_launcher_icons:main

👀 Example

Video Example

Note: This is showing v0.0.5.

Special thanks

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

Changelog

0.2.1 (25th April 2018)

  • Added extra iOS icon size (1024x1024)
  • Fixed iOS default icon name (Thanks to PR #15 - Thank you!)
  • Fixed issue #10 where creation of the icons was failing due to the target folder not existing

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.1"

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.1 Apr 25, 2018 Go to the documentation of flutter_launcher_icons 0.2.1 Download flutter_launcher_icons 0.2.1 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 failed Download flutter_launcher_icons 0.0.3 archive
0.0.2 Dec 4, 2017 failed Download flutter_launcher_icons 0.0.2 archive
0.0.1 Dec 4, 2017 failed Download flutter_launcher_icons 0.0.1 archive

Analysis

We analyzed this package on Apr 25, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
90 / 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]
95
Learn more about scoring.

Platforms

Detected platforms: Flutter, other

Platform components identified in package: io.

Suggestions

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

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 1 hint.

    Strong-mode analysis of lib/ios.dart gave the following hint:

    line: 109 col: 10
    'JSON' is deprecated and shouldn't be used.

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.31
Transitive dependencies
archive 1.0.33
args 1.4.3
browser 0.10.0+3
charcode 1.1.1
collection 1.14.9
convert 2.0.1
crypto 2.0.2+1
matcher 0.12.2
path 1.5.1
petitparser 1.7.6
source_span 1.4.0
stack_trace 1.9.2
string_scanner 1.0.2
typed_data 1.1.5
unittest 0.11.7 0.12.4+1
xml 3.0.0
yaml 2.1.13
Dev dependencies
test ^0.12.0