IconPackGenerator

A tool for generating icon packs from .svg files for Flutter packages.

🧰 Features

  • Icon preview in the IDE, if supported.
  • Icon pack generation based on configuration file.
  • Automatic addition of the icon font file in pubspec.yaml.

🖥️ Requirements

🧑‍💻 Installation

flutter pub add -d icon_pack_generator

OR

dart pub global activate icon_pack_generator

⚙️ Config file

Create the following file in the root of your project: icon_pack_generator.yaml or any other file in any other location, as long as it contains the following:

icon_pack_generator:
  class_name: ""    # ClassName
  package_name: ""  # package_name

  icon_source: ""   # path/to/folder
  font_target: ""   # path/to/folder
  class_target: ""  # path/to/folder

💡 Usage

Run the following command in the root of your project:

dart run icon_pack_generator

OR

dart run icon_pack_generator /path/to/file.yaml

📜 Credits

Libraries

icon_pack_generator
An icon font generator for Flutter applications.