Feature
- #555 Support build.yaml to configure. by @b2nkuu
- #567 Generate the
package
constant for generated font classes. by @TesteurManiak - #569 Enables
gaplessPlayback
by default for image assets. by @AlexV525 - #580 Allows
mime: '>=1.0.0 <3.0.0'
. by @AlexV525
Development
Feature
Development
- 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
Feature
- #471 Handles root directory assets. by @AlexV525
- #472 Add directory_path_enabled to output the path of assets directory classes. by @AlexV525
- #487 Add support for 'useArtboardSize' argument in rive integration. by @devilbuddy
- #493 Add support for vector graphics (vec files) in SvgGenImage. by @raldhafiri
Bug fix
Development
- Update to Dart 3.3.4.
- Update to Flutter 3.19.6.
Feature
Bug fix
Development
- #438 Fix module configurations.
- Update to Dart 3.2.0.
- Update to Flutter 3.16.0.
Bug fix
- #409 Update dependencies.
- Update Dart SDK to
>=2.17.0 <4.0.0
.
- Update Dart SDK to
Development
- Update to Dart 3.1.2.
- Update to Flutter 3.13.5.
Team
- Welcome @AlexV525 🎉
Bug fix
Feature
Bug fix
- #396 Fix
flutter_svg
>=2.0.4
requires a non-nullclipBehavior
field. @jetpeter @hasanmhallak
Development
- #380 Migrate to melos v3. @blaugold @jfacoustic
- Update Dart SDK to
>=2.17.0 <3.0.0
.
Feature
- #350 [BREAKING CHANGES] Upgrade for support of
flutter_svg 2.0.0
.
Feature
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
Bug fix
- #300 Fix
package_parameter_enabled
being ignored for Flare, Rive and Lottie. - #303 Add
ignore_for_file: implicit_dynamic_list_literal
to generated files.
Development
- #306 Update required
analyzer: '>=4.7.0 <6.0.0'
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
andpackage_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
- #287 Delete the generated files then flutter_gen won't generate files again
- #dart-lang/build#3364 Aggregate builder not rebuild when one of multiple output files is deleted.
Feature
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.
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.
- Extending package information to asset types other than AssetGenImage.
- Added 'gen_for_package:true/false' param to support asset generation for a package.
// 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(); }
- Added example_resource package for how to use another package resources from an app.
# 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
- Update to Dart 2.17.1
- Update to Flutter 3.0.1
Feature
Bug fix
- #187 Update dependencies.
- analyzer
Feature
Development
- Update to Dart 2.15.0
- Update to Flutter 2.8.1
Bug fix
Development
- Added sample code.
Bug fix
- #156 The Dartdocs generate different strings on Windows and Ubuntu.
Feature
- #138 Generate dartdoc as follows.
/// File path: pictures/chip5.jpg AssetGenImage get chip5 => const AssetGenImage('pictures/chip5.jpg'); /// Color: #979797 static const Color gray410 = Color(0xFF979797);
- #143 Support Rive files type.
flutter_gen: integrations: rive: true
- #150 Added the --version option for command-line.
% fluttergen --version FlutterGen v4.1.0
Bug fix
- #134 Added the ability to support the at symbol (@) in file names.
AssetGenImage get logo2x => const AssetGenImage('assets/images/[email protected]');
Development
- Update to Dart 2.14.4.
- Update to Flutter 2.5.3.
- Replace to renovate.
Bug fix
Development
- Replace to flutter_lints.
Features
- [BREAKING] Ended support for Non null safety codes.
- Use for
line_length
instead oflineLength
.
Development
- Replace to Melos.
- Add VSCode setting.
-
#117 Update to analyzer 2.0.0.
flutter_gen_runner (flutter_gen_core) 3.1.2 -> analyzer 2.0.0 workarounddependency_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
- #98 Support for adding assets from a package
- Support Null Safety
flutter_gen:
output: lib/gen/
line_length: 80
null_safety: true # Optional (default: true)
- Update dependencies
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
- #75 Null safety support for generated files
Bug fix
- #60 Set files like .DS_Store to the ignore list.
New Feature
- #46 Added support for unknown mime type files.
- Added support for Rive (previously Flare) files.
Bug fix
- #51 Added support for Key parameter in image() and svg().
Bug fix
- #42 Generated output folder name not being respected
New Feature
- #40 Support MaterialAccentColor
New Feature
- #33 Support to generate flat hierarchy assets with field name style:
- camel-case
- snake-case
- dot-delimiter (Default)
Bug fix
- Insufficient params of flutter_svg #32
Bug fix
Bug fix
- Issue #21
Initial release.
-
Assets generator
- Supported image type.
- Supported SVG as an integration.
- And others.
-
Fonts generator
-
Colors generator
- Supported xml file.
- MaterialColor
- Supported xml file.