Giter VIP home page Giter VIP logo

suclike / flutter_launcher_icons Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fluttercommunity/flutter_launcher_icons

0.0 2.0 0.0 1.87 MB

Flutter Launcher Icons - A package which simplifies the task of updating your Flutter app's launcher icon. Fully flexible, allowing you to choose what platform you wish to update the launcher icon for and if you want, the option to keep your old launcher icon in case you want to revert back sometime in the future. Maintainer: @MarkOSullivan94

Home Page: https://pub.dartlang.org/packages/flutter_launcher_icons

License: MIT License

Dart 93.50% Java 3.20% Swift 1.39% Objective-C 1.91%

flutter_launcher_icons's Introduction

Build Status pub package

Flutter Launcher Icons

A command-line tool which simplifies the task of updating your Flutter app's launcher icon. Fully flexible, allowing you to choose what platform you wish to update the launcher icon for and if you want, the option to keep your old launcher icon in case you want to revert back sometime in the future.

โœจ What's New

Version 0.6.0 (8th August 2018)

Version 0.5.0 (12th June 2018)

  • [Android] Support for adaptive icons added (Thanks to PR #28 - Thank you!)
Version 0.4.0 (8th June 2018)
  • Now possible to generate icons for each platform with different image paths - one for iOS icon and a separate one for Android (Thanks to PR #27 - Thank you!)

๐Ÿ” 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.6.0"
  1. Within the same pubspec.yaml file, add flutter_icons config section.

Unlike your Flutter projects, you do not need to add your launcher icon images into the assets section of the pubspec.yaml.

dev_dependencies: 
  flutter_test:
    sdk: flutter
    
  flutter_launcher_icons: "^0.6.0"
  
flutter_icons:
  android: true 
  ios: "Example-Icon"
  image_path: "assets/icon/icon.png"
  image_path_android: "assets/icon/icon_android.png"
  image_path_ios: "assets/icon/icon_ios.png"
  adaptive_icon_background: "#FFFAFAFA"
  adaptive_icon_foreground: "assets/icon/icon-foreground.png"

Attributes:

  • android/ios

    • true: Override the default existing Flutter launcher icon for the platform specified
    • false: Ignore making launcher icons for this platform
    • icon/path/here.png: This will generate a new launcher icons for the platform with the name you specify, without removing the old default existing Flutter launcher icon.
  • image_path: The location of the icon image file which you want to use as the app launcher icon

  • image_path_android: The location of the icon image file specific for Android platform (optional - if not defined then the image_path is used)

  • image_path_ios: The location of the icon image file specific for iOS platform (optional - if not defined then the image_path is used)

  • Adaptive icons: The next two attributes are only necessary if you want to have an adaptive icon for the Android app of your Flutter project.

    • adaptive_icon_background: The color which will be used to fill out the background of the adaptive icon.
    • adaptive_icon_foreground: The image asset which will be used for the icon foreground of the adaptive icon
  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.
  • Big thank you to all the contributors to the project. Every PR / reported issue is greatly appreciated!

flutter_launcher_icons's People

Contributors

markosullivan94 avatar franzsilva avatar slightfoot avatar azazkamaz avatar bcko avatar cretezy avatar markmooibroek avatar mdudek avatar shinriyo avatar

Watchers

James Cloos avatar dev.with avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.