NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #490 most downloaded on pub.dev
The Flutter code generator for your assets, fonts, colors, … — Get rid of all String-based APIs.
Last release 2 months ago
13 Jul 2026
Ships fairly regularly
a new release about every 2 months
Most releases are documented
notes for 41 of 53 stable releases
1 version withdrawn
withdrawn after publishing
6 years old
57 releases · first in 2021
One column per quarter.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
🔖 5.15.0 (#773)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Feature
abstract final class modifier for generated classes. by @RahmiTufanogluFix
xml 7.x support by widening flutter_gen_core's xml constraint to >=6.0.0 <8.0.0. by @AkhrameevDevelopment
GITHUB_TOKEN to least privilege in the release workflow.Release / Publish workflows so pushing a vMAJOR.MINOR.PATCH[+build|-pre] tag actually triggers them (previous publish.yml used regex syntax that GitHub Actions filter globs never matched).3.44.4, Node.js 24.18.0, pnpm 11.9.0, lint-staged v17.Fix package root resolution after build_runner 2.14.0 AOT changes. by @Carapacik
Development
Add build_runner --workspace support for flutter_gen_runner using a manifest + post-process materialization pipeline.
Feature
build_runner --workspace support for flutter_gen_runner using a manifest + post-process materialization pipeline.fluttergen --workspace support to the command package, including package-local build.yaml overrides for each workspace member.Development
>=3.7.0 and build_runner >=2.12.0.build_runner --workspace rebuild limitation for manually deleted generated files and recommend build_runner clean before rebuilding.Development #727 Allow rive 0.14.0 . by @AlexV525
Fixes version conflict between packages.
Development
Development #707 Allow build 4.0.0 . by @BetterB0y
Development
build 4.0.0. by @BetterB0yFeature #576 Add support for deferred components. by @ianmaciel #676 Add new option parse_animation to parse metadata for animated images. by @HuanDu
Feature
parse_animation to parse metadata for animated images. by @HuanDuColorMapper to svg loader. by @sysint64.vec SVG class for vector_graphics_compiler transformed assets. by @Albert221Development
Feature - #659 Add support Telegram Sticker .tgs in Lottie Integration. by @dungngminh Bug fix - #653 Constraints dart_style to >=2.3.7. by @AlexV525
Feature
.tgs in Lottie Integration. by @dungngminhBug fix
dart_style to >=2.3.7. by @AlexV525Feature #587 Support Lottie ZIP archive files. by @AlexV525 #599 Use FilterQuality.medium for the image integration. by @AlexV525 #615 Support dart_st
Feature
FilterQuality.medium for the image integration. by @AlexV525dart_style v3. by @AlexV525.lottie support. by @AlexV525archive v4. by @AlexV525Development
Bug fix
Feature #555 Support build.yaml to configure. by @b2nkuu #567 Generate the package constant for generated font classes. by @TesteurManiak #569 Enables
New releases asdf-fluttergen and setup-fluttergen. by @ronnnnn
Bug fix - #530 Fix the Flavored assets. by @AlexV525 - #532 Provide the theme to SvgAssetLoader instead of SvgPicture. by @Kirpal
Nothing published for this version
Feature - #471 Handles root directory assets. by @AlexV525 - #472 Add directory_path_enabled to output the path of assets directory classes. by @AlexV
Feature
Bug fix
Development
Feature - #435 Allowed the generated values statement to optionally be static. @bramp Bug fix - #432 Refactored the AssetGenImage code to be another I
Update Dart SDK to >=2.17.0 <4.0.0.
Bug fix - #383 Fix the wrong path for unknown mime types when packageParameterEnabled is enabled. @blaugold
Update Dart SDK to >=2.17.0 <3.0.0.
Feature
Bug fix
flutter_svg >=2.0.4 requires a non-null clipBehavior field. @jetpeter @hasanmhallakDevelopment
>=2.17.0 <3.0.0.Feature - #350 [BREAKING CHANGES] Upgrade for support of flutter_svg 2.0.0.
Feature
flutter_svg 2.0.0.Feature - #322 #327 [BREAKING CHANGES] Add keyName to integrations and exchange the path value.
Nothing published for this version
Bug fix - #322 Fix wrong package asset path with svg, lottie, flare and rive integrations. - #323 Fix generate failed when only list in a JSON files.
Bug fix - #308 #309 Fix missing add to the lottie#controller.
Bug fix - #300 Fix package_parameter_enabled being ignored for Flare, Rive and Lottie. - #303 Add ignore_for_file: implicit_dynamic_list_literal to ge
outputs: class_name: MyAssets # Default is Assets
Feature
#285 #298 Add Lottie files integration.
// Assets.lottie.hamburgerArrow.lottie()
SizedBox(
width: 200,
height: 200,
child: Assets.lottie.hamburgerArrow.lottie(
fit: BoxFit.contain,
),
),
#286 Allow users to change generated class name for assets, fonts, and colors.
flutter_gen:
assets:
# Optional
outputs:
class_name: MyAssets # Default is `Assets`
fonts:
# Optional
outputs:
class_name: MyFontFamily # Default is `FontFamily`
colors:
# Optional
outputs:
class_name: MyColorName # Default is `ColorName`
#291 Add values list to generated classes for each directory.
Assets.images.values // <List<AssetGenImage>>[chip1, chip2, logo, profileJpg, profilePng];
#292 Support an ImageProvider.
// Assets.images.chip.provider()
Container(
height: 400,
decoration: BoxDecoration(
image: DecorationImage(
image: Assets.images.chip.provider(),
),
),
child: const Center(child: Text('Deco')),
),
#294 [BREAKING CHANGES] Moved the style and package_parameter_enabled to under assets.outputs scope.
# ❌ Before
flutter_gen:
# ...
assets:
package_parameter_enabled: true
style: snake-case
outputs:
class_name: MyAssets
# ⭕️ After
flutter_gen:
# ...
assets:
outputs:
class_name: MyAssets
package_parameter_enabled: true
style: snake-case
Bug fix
Feature - #264 Add keyName to asset generate file. - #248 - #251 Bug fix - #247 Make the default scale value null, so Flutter decides the one to use.
Bug fix - #236 The crypto package 3.0.2 conflict in flutter_gen_runner 4.2.0 with integration_test.
Bug fix
Nothing published for this version
Extending package information to asset types other than AssetGenImage.
Feature
#208 Add scale and opacity parameters to Image().
#221 Support for build_runner watch.
#227 Maintenance for Flutter3 (flutter_lints to 2.0.1).
#229 Removed the AssetImage inheritance from AssetGenImage.
// Before
Widget build(BuildContext context) {
return Image(image: Assets.images.chip); // Can't use this.
}
// After
Widget build(BuildContext context) {
return Assets.images.chip.image();
}
# file: example_resources/pubspec.yaml
# ...
flutter_gen:
# ...
assets:
enabled: true
package_parameter_enabled: true
#...
#230 Add coverage ignore comment on generated file headers.
Update collection to 1.16.0.
Update min dart sdk to >=2.14.0 <3.0.0.
Development
Feature - #199 #201 Expose some parameters of SvgPicture (flutter_svg). - theme - cacheColorFilter
Nothing published for this version
Bug fix - #187 Update dependencies. - analyzer
Bug fix
Feature - #180 #182 Update to dartx 1.0.0 and json_serializable to 6.0.0 Development - Update to Dart 2.15.0 - Update to Flutter 2.8.1
Bug fix - #172 #173 Add unnecessary_import in ignore_for_title because cause warning from Dart 2.15.
Development - Added sample code.
Development
Nothing published for this version
Bug fix - #156 The Dartdocs generate different strings on Windows and Ubuntu.
Bug fix
Nothing published for this version
Feature - #138 Generate dartdoc as follows. `dart /// File path: pictures/chip5.jpg AssetGenImage get chip5 => const AssetGenImage('pictures/chip5.jpg
Feature
/// File path: pictures/chip5.jpg
AssetGenImage get chip5 => const AssetGenImage('pictures/chip5.jpg');
/// Color: #979797
static const Color gray410 = Color(0xFF979797);
flutter_gen:
integrations:
rive: true
% fluttergen --version
FlutterGen v4.1.0
Bug fixAssetGenImage get logo2x => const AssetGenImage('assets/images/logo@2x.png');
DevelopmentBug fix - #134 Support the at symbol (@) in file names. - #139 Error: Method not found: '$checkedCreate Development - Replace to flutter_lints.
[BREAKING] Ended support for Non null safety codes.
Features
line_length instead of lineLength.Development
`yaml dependency_overrides: meta: ^1.7.0 `
#117 Update to analyzer 2.0.0. flutter_gen_runner (flutter_gen_core) 3.1.2 -> analyzer 2.0.0 workaround
dependency_overrides:
meta: ^1.7.0
#110 Replace null safety dart style package.
Features & Bug fix - #103 Add option packageParameterEnabled to control whether to generate package parameter for assets or not.
Features & Bug fix
Features - #98 Support for adding assets from a package
Features
Nothing published for this version
Nothing published for this version
Nothing published for this version
`yaml flutter_gen: output: lib/gen/ line_length: 80 null_safety: true # Optional (default: true) `
flutter_gen:
output: lib/gen/
line_length: 80
null_safety: true # Optional (default: true)
Nothing published for this version
Nothing published for this version
- Update dependencies
Nothing published for this version
Nothing published for this version
[BREAKING CHANGE] #49 #53 Name collision with flutter localization when using build_runner
New Feature
[BREAKING CHANGE] #49 #53 Name collision with flutter localization when using build_runner
# Before
# dev_dependencies:
# flutter_gen: 1.3.1
# After
dev_dependencies:
flutter_gen_runner: ^2.0.0
#74 Doesn't generate assets.gen.dart when there are no assets
flutter_gen:
fonts:
enabled: false
#59 Handling duplicate file names
// generated codes
static const AssetGenImage imagesProfileJpg = AssetGenImage('assets/images/profile.jpg');
static const AssetGenImage imagesProfilePng = AssetGenImage('assets/images/profile.png');
Bug fix
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →