Flutter-gen

Latest version: v2.2.0

Safety actively analyzes 642295 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 8

5.0.3

**Bug fix**
- [322](https://github.com/FlutterGen/flutter_gen/issues/322) Fix wrong package asset path with svg, lottie, flare and rive integrations.
- [323](https://github.com/FlutterGen/flutter_gen/issues/323) Fix generate failed when only list in a JSON files.

5.0.2

**Bug fix**
- [308](https://github.com/FlutterGen/flutter_gen/issues/308) [#309](https://github.com/FlutterGen/flutter_gen/pull/309) Fix missing add to the `lottie#controller`.

5.0.1

**Bug fix**
- [300](https://github.com/FlutterGen/flutter_gen/pull/300) Fix `package_parameter_enabled` being ignored for Flare, Rive and Lottie.
- [303](https://github.com/FlutterGen/flutter_gen/pull/303) Add `ignore_for_file: implicit_dynamic_list_literal` to generated files.

**Development**
- [306](https://github.com/FlutterGen/flutter_gen/pull/306) Update required `analyzer: '>=4.7.0 <6.0.0'`

5.0.0

**Feature**
- [285](https://github.com/FlutterGen/flutter_gen/pull/285) [#298](https://github.com/FlutterGen/flutter_gen/pull/298) Add Lottie files integration.
dart
// Assets.lottie.hamburgerArrow.lottie()
SizedBox(
width: 200,
height: 200,
child: Assets.lottie.hamburgerArrow.lottie(
fit: BoxFit.contain,
),
),

- [286](https://github.com/FlutterGen/flutter_gen/pull/286) Allow users to change generated class name for assets, fonts, and colors.
yaml
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](https://github.com/FlutterGen/flutter_gen/pull/291) Add values list to generated classes for each directory.
dart
Assets.images.values // <List<AssetGenImage>>[chip1, chip2, logo, profileJpg, profilePng];

- [292](https://github.com/FlutterGen/flutter_gen/pull/292) Support an ImageProvider.
dart
// Assets.images.chip.provider()
Container(
height: 400,
decoration: BoxDecoration(
image: DecorationImage(
image: Assets.images.chip.provider(),
),
),
child: const Center(child: Text('Deco')),
),


- [294](https://github.com/FlutterGen/flutter_gen/pull/294) [**BREAKING CHANGES**] Moved the `style` and `package_parameter_enabled` to under assets.outputs scope.
yaml

❌ 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 ](https://github.com/FlutterGen/flutter_gen/issues/287) Delete the generated files then flutter_gen won't generate files again
- [dart-lang/build3364](https://github.com/dart-lang/build/issues/3364) Aggregate builder not rebuild when one of multiple output files is deleted.

4.3.0

**Feature**
- [264](https://github.com/FlutterGen/flutter_gen/pull/264) Add `keyName` to asset generate file.
- [248](https://github.com/FlutterGen/flutter_gen/pull/248)
- [251](https://github.com/FlutterGen/flutter_gen/pull/251)

**Bug fix**
- [247](https://github.com/FlutterGen/flutter_gen/pull/247) Make the default scale value null, so Flutter decides the one to use.

4.2.1

**Bug fix**
- [236](https://github.com/FlutterGen/flutter_gen/issues/236) The crypto package 3.0.2 conflict in flutter_gen_runner 4.2.0 with integration_test.

Page 2 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.