PackageTrack
Sign in Get early access

flutter_gen_core

The Flutter code generator for your assets, fonts, colors, … — Get rid of all String-based APIs.

5.15.0 632K downloads/mo #454 most downloaded on pub.dev FlutterGen/flutter_gen

What this package is like to depend on

Last release 1 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

6 releases in the last 12 months

see the full history below

Release timeline

57 releases · Feb 2021 to Jul 2026
2022 2023 2024 2025 2026
Release Pre-release Withdrawn

Releases

latest 57
  1. 5.15.0 13 Jul 2026
    Release notes

    🔖 5.15.0 (#773)

    Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>

    Open source →
    Release notes

    Feature

    Fix

    • #764 Add xml 7.x support by widening flutter_gen_core's xml constraint to >=6.0.0 <8.0.0. by @Akhrameev

    Development

    • #757 Scope GITHUB_TOKEN to least privilege in the release workflow.
    • Fix tag glob in the 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).
    • Bump CI toolchain: Flutter 3.44.4, Node.js 24.18.0, pnpm 11.9.0, lint-staged v17.
    Open source →
  2. 5.14.1 27 Apr 2026
    Release notes

    Development

    • Fix package root resolution after build_runner 2.14.0 AOT changes. by @Carapacik
    Open source →
  3. 5.14.0 19 Apr 2026
    Release notes

    Feature

    • Add build_runner --workspace support for flutter_gen_runner using a manifest + post-process materialization pipeline.
    • Add fluttergen --workspace support to the command package, including package-local build.yaml overrides for each workspace member.

    Development

    • Document and align the minimum supported versions for the new build pipeline: Dart >=3.7.0 and build_runner >=2.12.0.
    • Document the current build_runner --workspace rebuild limitation for manually deleted generated files and recommend build_runner clean before rebuilding.
    Open source →
  4. 5.13.0 04 Mar 2026
    Release notes

    Development

    Open source →
    Release notes

    Development

    Open source →
  5. 5.13.0+1 09 Mar 2026
    Release notes

    Development

    • Fixes version conflict between packages.
    Open source →
    Release notes

    Development

    • Fixes version conflict between packages.
    Open source →
  6. 5.12.0 21 Sep 2025
    Release notes

    Development

    Open source →
    Release notes

    Development

    Open source →
  7. 5.11.0 17 Jul 2025
    Release notes

    Feature

    • #576 Add support for deferred components. by @ianmaciel
    • #676 Add new option parse_animation to parse metadata for animated images. by @HuanDu
    • #680 Add svg ColorMapper to svg loader. by @sysint64
    • #685 Use .vec SVG class for vector_graphics_compiler transformed assets. by @Albert221
    • #697 Refactor how generated files are being formatted. by @AlexV525

    Development

    Open source →
    Release notes

    Feature

    • #576 Add support for deferred components. by @ianmaciel
    • #676 Add new option parse_animation to parse metadata for animated images. by @HuanDu
    • #680 Add svg ColorMapper to svg loader. by @sysint64
    • #685 Use .vec SVG class for vector_graphics_compiler transformed assets. by @Albert221
    • #697 Refactor how generated files are being formatted. by @AlexV525

    Development

    Open source →
  8. 5.10.0 02 Mar 2025
    Release notes

    Feature

    • #659 Add support Telegram Sticker .tgs in Lottie Integration. by @dungngminh

    Bug fix

    Open source →
  9. 5.9.0 05 Feb 2025
    Release notes

    Feature

    Development

    Bug fix

    • #592 Accept both flutter_gen and flutter_gen_runner as the entry of build.yaml. by @b2nkuu
    Open source →
    Release notes

    Feature

    Development

    Bug fix

    • #592 Accept both flutter_gen and flutter_gen_runner as the entry of build.yaml. by @b2nkuu
    Open source →
  10. 5.8.0 08 Oct 2024
    Release notes

    Feature

    Development

    Open source →
    Release notes

    Feature

    Development

    Open source →
  11. 5.7.0 28 Aug 2024
    Release notes

    Feature

    • #548 Add Import abstraction for package imports alias. by @AlexV525

    Development

    Open source →
  12. 5.6.0 25 Jun 2024
    Release notes

    Bug fix

    Open source →
  13. 5.5.0 20 May 2024 withdrawn

    Nothing published for this version

  14. 5.5.0+1 20 May 2024
    Release notes

    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

    • #485 Remove default SvgTheme argument preventing DefaultSvgTheme works correctly. by @mym0404

    Development

    • Update to Dart 3.3.4.
    • Update to Flutter 3.19.6.
    Open source →
  15. 5.4.0 05 Jan 2024
    Release notes

    Feature

    • #435 Allowed the generated values statement to optionally be static. @bramp

    Bug fix

    • #432 Refactored the AssetGenImage code to be another Integration. @bramp

    Development

    • #438 Fix module configurations.
    • Update to Dart 3.2.0.
    • Update to Flutter 3.16.0.
    Open source →
  16. 5.3.2 21 Sep 2023
    Release notes

    Bug fix

    • #409 Update dependencies.
      • Update Dart SDK to >=2.17.0 <4.0.0.

    Development

    • Update to Dart 3.1.2.
    • Update to Flutter 3.13.5.

    Team

    Open source →
  17. 5.3.1 05 May 2023
    Release notes

    Bug fix

    • #383 Fix the wrong path for unknown mime types when packageParameterEnabled is enabled. @blaugold
    Open source →
  18. 5.3.0 18 Apr 2023
    Release notes

    Feature

    • #361 Add package parameter to generated asset provider method. @orevial

    Bug fix

    Development

    Open source →
  19. 5.2.0 07 Feb 2023
    Release notes

    Feature

    • #350 [BREAKING CHANGES] Upgrade for support of flutter_svg 2.0.0.
    Open source →
  20. 5.1.0 31 Oct 2022
    Release notes

    Feature

    • #322 #327 [BREAKING CHANGES] Add keyName to integrations and exchange the path value.
    Open source →
  21. 5.1.0+1 31 Oct 2022

    Nothing published for this version

  22. 5.0.3 20 Oct 2022
    Release notes

    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.
    Open source →
  23. 5.0.2 12 Oct 2022
    Release notes

    Bug fix

    • #308 #309 Fix missing add to the lottie#controller.
    Open source →
  24. 5.0.1 29 Sep 2022
    Release notes

    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'
    Open source →
  25. 5.0.0 28 Sep 2022
    Release notes

    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

    • #287 Delete the generated files then flutter_gen won't generate files again
    Open source →
  26. 4.3.0 09 Jun 2022
    Release notes

    Feature

    Bug fix

    • #247 Make the default scale value null, so Flutter decides the one to use.
    Open source →
  27. 4.2.1 30 May 2022
    Release notes

    Bug fix

    • #236 The crypto package 3.0.2 conflict in flutter_gen_runner 4.2.0 with integration_test.
    Open source →
  28. 4.2.1+1 07 Jun 2022

    Nothing published for this version

  29. 4.2.0 25 May 2022
    Release notes

    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();
      }
      
      • 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
    Open source →
  30. 4.1.6 07 Mar 2022
    Release notes

    Feature

    • #199 #201 Expose some parameters of SvgPicture (flutter_svg).
      • theme
      • cacheColorFilter
    Open source →
  31. 4.1.6+1 06 Jun 2022

    Nothing published for this version

  32. 4.1.5 13 Jan 2022
    Release notes

    Bug fix

    • #187 Update dependencies.
      • analyzer
    Open source →
  33. 4.1.4 04 Jan 2022
    Release notes

    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
    Open source →
  34. 4.1.3 14 Dec 2021
    Release notes

    Bug fix

    • #172 #173 Add unnecessary_import in ignore_for_title because cause warning from Dart 2.15.
    Open source →
  35. 4.1.2 05 Nov 2021
    Release notes

    Bug fix

    • #156 The Dartdocs generate different strings on Windows and Ubuntu.
    Open source →
  36. 4.1.2+1 09 Dec 2021
    Release notes

    Development

    • Added sample code.
    Open source →
  37. 4.1.2+2 09 Dec 2021

    Nothing published for this version

  38. 4.1.1 05 Nov 2021

    Nothing published for this version

  39. 4.1.0 29 Oct 2021
    Release notes

    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.
    Open source →
  40. 4.0.1 21 Oct 2021
    Release notes

    Bug fix

    • #134 Support the at symbol (@) in file names.
    • #139 Error: Method not found: '$checkedCreate

    Development

    • Replace to flutter_lints.
    Open source →
  41. 4.0.0 30 Sep 2021
    Release notes

    Features

    • [BREAKING] Ended support for Non null safety codes.
    • Use for line_length instead of lineLength.

    Development

    • Replace to Melos.
    • Add VSCode setting.
    Open source →
  42. 3.1.2 17 Aug 2021
    Release notes
    Open source →
  43. 3.1.1 08 Apr 2021
    Release notes

    Features & Bug fix

    • #103 Add option packageParameterEnabled to control whether to generate package parameter for assets or not.
    Open source →
  44. 3.1.0 07 Apr 2021
    Release notes

    Features

    • #98 Support for adding assets from a package
    Open source →
  45. 3.0.2 17 Mar 2021

    Nothing published for this version

  46. 3.0.1 17 Mar 2021

    Nothing published for this version

  47. 3.0.0 16 Mar 2021
    Release notes
    • Support Null Safety
    flutter_gen:
      output: lib/gen/
      line_length: 80
      null_safety: true # Optional (default: true)
    
    Open source →
  48. 3.0.0+1 17 Mar 2021

    Nothing published for this version

  49. 2.0.3 12 Mar 2021

    Nothing published for this version

  50. 2.0.2 08 Mar 2021

    Nothing published for this version

  51. 2.0.1 27 Feb 2021
    Release notes
    • Update dependencies
    Open source →
  52. 2.0.1-dev.1 27 Feb 2021 pre-release

    Nothing published for this version

  53. 2.0.1-dev.0 27 Feb 2021 pre-release

    Nothing published for this version

  54. 2.0.0 20 Feb 2021
    Release notes

    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
    Open source →
  55. 2.0.0-dev.1 18 Feb 2021 pre-release

    Nothing published for this version

  56. 0.0.2 17 Feb 2021

    Nothing published for this version

  57. 0.0.1 17 Feb 2021

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive