https://github.com/yeungkc/flutter-iconfont-generate
https://github.com/yeungkc/flutter-iconfont-generate
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yeungkc/flutter-iconfont-generate
- Owner: YeungKC
- License: mit
- Created: 2023-09-16T13:54:17.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-18T02:14:45.000Z (almost 2 years ago)
- Last Synced: 2025-04-02T03:39:55.315Z (3 months ago)
- Language: Rust
- Size: 24.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```