Skip to content

Releases: FlutterGen/flutter_gen

v5.1.0

31 Oct 08:51
c857eb5
Compare
Choose a tag to compare

Feature

  • #322 #327 [BREAKING CHANGES] Add keyName to integrations and exchange the path value.

v5.0.3

20 Oct 08:38
430d4fb
Compare
Choose a tag to compare

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.

v5.0.2

12 Oct 05:39
be02dc9
Compare
Choose a tag to compare

Bug fix

  • #308 #309 Fix missing add to the lottie#controller.

v5.0.1

29 Sep 07:37
1bd85ed
Compare
Choose a tag to compare

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'

v5.0.0

28 Sep 09:34
Compare
Choose a tag to compare

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

v4.3.0

09 Jun 05:35
62759d6
Compare
Choose a tag to compare
Release v4.3.0 (#265)

* feat: add keyName to asset generator

* chore: bump up to 4.3.0

v4.2.1+1

07 Jun 05:34
Compare
Choose a tag to compare
Merge branch 'main' of https://github.com/FlutterGen/flutter_gen

v4.2.1

30 May 09:00
05e307b
Compare
Choose a tag to compare
chore: bump up to v4.2.1 (#245)

* fix: change the version to as a range

* fix: change the version to as a range

* chore: bump up to 4.2.1

v4.2.0

25 May 09:35
7da8c55
Compare
Choose a tag to compare
feat: bump up to 4.2.0 (#234)

* feat: bump up to 4.2.0

* chore: update changelog

v4.1.6+1

06 Jun 08:13
Compare
Choose a tag to compare
chore: bump up to 4.1.6