A Flutter code generator that creates type-safe classes for assets, fonts, and colors to eliminate string-based APIs.
FlutterGen is a code generation tool for Flutter applications that automatically creates type-safe Dart classes from assets, fonts, and colors defined in the pubspec.yaml file. It eliminates the need for string-based asset paths by generating compile-time safe references that provide autocomplete and prevent runtime errors from typos.
Flutter developers working on medium to large applications who need to manage multiple assets, fonts, and colors while maintaining code safety and developer productivity.
Developers choose FlutterGen because it provides compile-time safety for asset references, reduces runtime crashes from typos, improves IDE autocomplete, and supports popular Flutter packages like flutter_svg, Rive, and Lottie with dedicated generated methods.
The Flutter code generator for your assets, fonts, colors, … — Get rid of all String-based APIs.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Generates type-safe Dart classes that replace error-prone string paths with autocomplete-friendly references, eliminating typos and reducing runtime crashes.
Supports Flutter SVG, Rive, and Lottie packages with dedicated generated methods, simplifying usage without manual package-specific calls.
Works seamlessly with Dart pub workspaces and multi-package projects, allowing centralized code generation across complex project structures.
Offers customizable output styles like camelCase and snake_case, plus options for metadata parsing and directory paths to tailor generated code.
Requires build_runner configuration or global tool installation, and has known conflicts with Flutter's internationalization, necessitating manual workarounds like disabling synthetic packages.
Enabling advanced features like parse_animation 'significantly increases generation time,' slowing down iterative development builds and impacting productivity.
Focuses on compile-time asset references from pubspec.yaml, making it unsuitable for applications that need to load assets dynamically at runtime from external sources.