Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yeungkc/flutter-iconfont-generate
https://github.com/yeungkc/flutter-iconfont-generate
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yeungkc/flutter-iconfont-generate
- Owner: YeungKC
- License: mit
- Created: 2023-09-16T13:54:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-18T02:14:45.000Z (about 1 year ago)
- Last Synced: 2024-10-11T01:48:29.216Z (26 days 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
```