Icon Pack Generator

An icon pack generator from .svg files for Flutter applications.

Features

  • 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

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

Credits