Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yeungkc/flutter-iconfont-generate


https://github.com/yeungkc/flutter-iconfont-generate

Last synced: 4 days ago
JSON representation

Awesome Lists containing this project

README

        

# Flutter Iconfont Generate

Iconfonts are commonly used in Flutter, and typically there is a CSS file that describes the relationship between unicode and name. This tool converts the CSS file into a Dart file, making it easy to use in Flutter.

## Setup

Install Rust and Cargo environment. Please refer to [rustup](https://rustup.rs/) for specific instructions.

## Build

bash

```shell
git clone [email protected]:YeungKC/flutter-iconfont-generate.git
cd flutter-iconfont-generate
cargo build --release
```

## Usage

```shell

Usage: flutter-iconfont-generate [OPTIONS]

Arguments:

Options:
-p, --package
-c, --class-name [default: IconFonts]
-o, --overwrite
-h, --help Print help
-V, --version Print version

```

### Example

bash

```shell
flutter-iconfont-generate ./iconfont.css ./lib/generated/iconfont.dart
```