Code Monkey home page Code Monkey logo

flutter_icon_generator's Introduction

Flutter Icon Generator

GitHub Repo stars GitHub code size in bytes GitHub License

Script for generating icons for Flutter apps from Adobe Illustrator. The script can also be used for other, more generic projects.

Setup

Copy the file ai/FlutterGenerateIcons.jsx to

  • ~/Applications/{Adobe Illustrator}/Presets/{locale}/Scripts/ for macOS, or
  • C:\Program Files\Adobe\{Adobe Illustrator}\Presets\{locale}\Scripts\ for Windows.

Usage

Flutter projects

  1. Setup the scripts for your desired program.
  2. Open your icon file.
  3. Open menu File -> Scripts.
  4. Click on FlutterGenerateIcons.
  5. From popup select the root of your Flutter project (directory containing pubspec.yaml file).
  6. In the main window of script
    • choose the Artboard you want exported,
    • platforms for which you want to generate the icons, and
    • leave Flutter checked under frameworks.
  7. Click on "Export" button and wait for the window to close.
  8. If everything went as expected, you should have appropriate icons in desired folders.

Non-Flutter projects

  1. Setup the scripts for your desired program.
  2. Open your icon file.
  3. Open menu File -> Scripts.
  4. Click on FlutterGenerateIcons.
  5. From popup select the folder depending on type of your project.
    • iOS: Select the Assets.xcassets directory.
    • macOS: Select the Assets.xcassets directory.
    • Android: Select the root of your Android project.
  6. In the main window of script
    • choose the Artboard you want exported,
    • platform for which you want to generate the icons, and
    • uncheck the Flutter checkbox under frameworks.
  7. Click on "Export" button and wait for the window to close.
  8. If everything went as expected, you should have appropriate icons in desired folders.

Creating an ICO file

By defualt, when creating an icon for Windows, only PNGs of different sizes are created. In order to combine them into a .ico file, use png2ico. Usage is completely straightforward and a project has great documentation.

User interface

The user interface is completely straightforward and plain, without any unnecessary garbage.

License

This project is licensed under MIT License.

Contributing

If you have a suggestion for another framework, or software like Photoshop, feel free to file an issue, or even a pull request!


If you find this project useful, consider giving it a star. It would mean a lot to me!

flutter_icon_generator's People

Contributors

campovski avatar

Watchers

 avatar  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.