flutter_iconfont_generator 1.0.2
flutter_iconfont_generator: ^1.0.2 copied to clipboard
A Dart/Flutter code generator for iconfont.cn icons. Converts iconfont.cn icons to Flutter widgets with SVG rendering, supporting multi-color icons and null safety.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.2 - 2025-07-06 #
Changed #
- 📚 Separated documentation into English (README.md) and Chinese (README_CN.md) versions
- 🔧 Enhanced build configuration to prevent conflicts with other generators
- 📋 Improved troubleshooting section with build conflict resolution
- 🎨 Removed redundant pub package badges for cleaner documentation
Fixed #
- 🐛 Fixed build conflicts by limiting builder scope in build.yaml
- 🔨 Changed output file extension from .g.dart to .iconfont.g.dart to avoid conflicts
- 📖 Fixed duplicate content in Chinese documentation
Improved #
- 🌐 Better internationalization with separate language documentation
- 🛠️ Enhanced build.yaml configuration with specific file targeting
- 📚 Added detailed solutions for common build conflicts
1.0.1 - 2025-06-11 #
1.0.0 - 2025-05-31 #
Added #
- 🚀 Command line tool for generating Flutter icon widgets from iconfont.cn
- 🎨 Multi-color icon support with custom color rendering
- 📦 SVG-based rendering for smaller bundle size (no font files needed)
- 🔄 Automated icon fetching and Dart code generation
- 🛡️ Full null safety support
- ⚡ Global installation support via
dart pub global activate
Features #
- Convert iconfont.cn symbol URLs to Flutter widgets
- Configurable icon prefix trimming
- Customizable save directory and default icon size
- Support for both single-color and multi-color icons
- Pure Dart components with flutter_svg dependency
- Easy configuration through pubspec.yaml
Dependencies #
- flutter_svg: ^2.0.0
- http: ^1.0.0
- xml: ^6.3.0
- path: ^1.8.3
- yaml: ^3.1.2
Requirements #
- Dart SDK: >=2.17.0 <4.0.0
- Flutter: >=3.0.0