Skip to content

Latest commit

 

History

History
272 lines (202 loc) · 7.82 KB

CHANGELOG.md

File metadata and controls

272 lines (202 loc) · 7.82 KB

4.3.0

Feature

Bug fix

  • #247 Make the default scale value null, so Flutter decides the one to use.

4.2.1, 4.2.1+1

Bug fix

  • #236 The crypto package 3.0.2 conflict in flutter_gen_runner 4.2.0 with integration_test.

4.2.0

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

4.1.6, 4.1.6+1

Feature

  • #199 #201 Expose some parameters of SvgPicture (flutter_svg).
    • theme
    • cacheColorFilter

4.1.5

Bug fix

  • #187 Update dependencies.
    • analyzer

4.1.4

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

4.1.3

Bug fix

  • #172 #173 Add unnecessary_import in ignore_for_title because cause warning from Dart 2.15.

4.1.2+1, 4.1.2+2

Development

  • Added sample code.

4.1.2

Bug fix

  • #156 The Dartdocs generate different strings on Windows and Ubuntu.

4.1.0

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.

4.0.1

Bug fix

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

Development

  • Replace to flutter_lints.

4.0.0

Features

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

Development

  • Replace to Melos.
  • Add VSCode setting.

3.1.2

3.1.1

Features & Bug fix

  • #103 Add option packageParameterEnabled to control whether to generate package parameter for assets or not.

3.1.0

Features

  • #98 Support for adding assets from a package

3.0.0, 3.0.1, 3.0.2

  • Support Null Safety
flutter_gen:
  output: lib/gen/
  line_length: 80
  null_safety: true # Optional (default: true)

2.0.1, 2.0.2, 2.0.3

  • Update dependencies

2.0.0

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

1.3.1

Bug fix

  • #60 Set files like .DS_Store to the ignore list.

1.3.0

New Feature

1.2.2

Bug fix

  • #51 Added support for Key parameter in image() and svg().

1.2.1

Bug fix

  • #42 Generated output folder name not being respected

1.2.0

New Feature

  • #40 Support MaterialAccentColor

1.1.0

New Feature

  • #33 Support to generate flat hierarchy assets with field name style:
    • camel-case
    • snake-case
    • dot-delimiter (Default)

1.0.3

Bug fix

  • Insufficient params of flutter_svg #32

1.0.2

Bug fix

  • Generate sorted statements #27
  • Make Windows work properly #28

1.0.1

Bug fix

1.0.0

Initial release.

  • Assets generator

    • Supported image type.
    • Supported SVG as an integration.
    • And others.
  • Fonts generator

  • Colors generator

    • Supported xml file.
      • MaterialColor