diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d529ffa..bd265929 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## 5.10.0 + +**Feature** +- [#659](https://github.com/FlutterGen/flutter_gen/pull/659) Add support Telegram Sticker `.tgs` in Lottie Integration. by [@dungngminh](https://github.com/dungngminh) + +**Bug fix** +- [#653](https://github.com/FlutterGen/flutter_gen/pull/653) Constraints `dart_style` to `>=2.3.7`. by [@AlexV525](https://github.com/AlexV525) +- [#656](https://github.com/FlutterGen/flutter_gen/pull/656) Add missing parameters in Lottie integration from lottie 3.0.0. by [@dungngminh](https://github.com/dungngminh) +- [#658](https://github.com/FlutterGen/flutter_gen/pull/658) Update required dart version. by [@koji-1009](https://github.com/koji-1009) + ## 5.9.0 **Feature** diff --git a/README.md b/README.md index 05e1ec8e..5c3e01d7 100644 --- a/README.md +++ b/README.md @@ -53,30 +53,27 @@ Widget build(BuildContext context) { ## Installation -### Homebrew +### As a part of build_runner -Works with macOS and Linux. +1. Add [build_runner] and [FlutterGen] to your package's pubspec.yaml file: -```sh -brew install FlutterGen/tap/fluttergen -``` + ```yaml + dev_dependencies: + build_runner: + flutter_gen_runner: + ``` -### asdf +2. Install [FlutterGen] -Works with macOS and Linux. -asdf-fluttergen is compatible with [mise](https://mise.jdx.dev/). + ```sh + flutter pub get + ``` -```sh -# add plugin -asdf plugin add fluttergen -# or -asdf plugin add fluttergen https://github.com/FlutterGen/asdf-fluttergen.git - -# install fluttergen -asdf install fluttergen latest -``` +3. Use [FlutterGen] -See also: [FlutterGen/asdf-fluttergen](https://github.com/FlutterGen/asdf-fluttergen) + ```sh + dart run build_runner build + ``` ### Pub Global @@ -88,28 +85,31 @@ dart pub global activate flutter_gen You might need to [set up your path](https://dart.dev/tools/pub/cmd/pub-global#running-a-script-from-your-path). -### As a part of build_runner - -1. Add [build_runner] and [FlutterGen] to your package's pubspec.yaml file: - -``` -dev_dependencies: - build_runner: - flutter_gen_runner: -``` +### Homebrew -2. Install [FlutterGen] +Works with macOS and Linux. ```sh -flutter pub get +brew install FlutterGen/tap/fluttergen ``` -3. Use [FlutterGen] +### asdf + +Works with macOS and Linux. +asdf-fluttergen is compatible with [mise](https://mise.jdx.dev/). ```sh -dart run build_runner build +# add plugin +asdf plugin add fluttergen +# or +asdf plugin add fluttergen https://github.com/FlutterGen/asdf-fluttergen.git + +# install fluttergen +asdf install fluttergen latest ``` +See also: [FlutterGen/asdf-fluttergen](https://github.com/FlutterGen/asdf-fluttergen) + ### GitHub Actions Works with macOS and Linux. @@ -404,11 +404,11 @@ Widget build(BuildContext context) { **Available Integrations** -| Packages | File extension | Setting | Usage | -|---------------------------------------------------------|----------------------|-----------------------|-------------------------------------------| -| [flutter_svg](https://pub.dev/packages/flutter_svg) | .svg | `flutter_svg: true` | Assets.images.icons.paint.**svg()** | -| [rive](https://pub.dev/packages/rive) | .riv | `rive: true` | Assets.rive.vehicles.**rive()** | -| [lottie](https://pub.dev/packages/lottie) | .json, .zip, .lottie, .tgs | `lottie: true` | Assets.lottie.hamburgerArrow.**lottie()** | +| Packages | File extension | Setting | Usage | +|-----------------------------------------------------|----------------------------|---------------------|-------------------------------------------| +| [flutter_svg](https://pub.dev/packages/flutter_svg) | .svg | `flutter_svg: true` | Assets.images.icons.paint.**svg()** | +| [rive](https://pub.dev/packages/rive) | .riv | `rive: true` | Assets.rive.vehicles.**rive()** | +| [lottie](https://pub.dev/packages/lottie) | .json, .zip, .lottie, .tgs | `lottie: true` | Assets.lottie.hamburgerArrow.**lottie()** | **Note:** For [lottie](https://pub.dev/packages/lottie) integration with `.lottie` and `.tgs` files, you must add a custom decoder via `decoder` parameter, see [lottie's document](https://pub.dev/packages/lottie#telegram-stickers-tgs-and-dotlottie-lottie) for more information. diff --git a/packages/command/pubspec.yaml b/packages/command/pubspec.yaml index 06d43658..31376512 100644 --- a/packages/command/pubspec.yaml +++ b/packages/command/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_gen description: The Flutter code generator for your assets, fonts, colors, … — Get rid of all String-based APIs. -version: 5.9.0 +version: 5.10.0 homepage: https://github.com/FlutterGen/flutter_gen repository: https://github.com/FlutterGen/flutter_gen documentation: https://github.com/FlutterGen/flutter_gen @@ -13,7 +13,7 @@ executables: fluttergen: flutter_gen_command dependencies: - flutter_gen_core: 5.9.0 + flutter_gen_core: 5.10.0 args: ^2.0.0 dev_dependencies: diff --git a/packages/core/lib/version.gen.dart b/packages/core/lib/version.gen.dart index 267d0e3b..e0a6a78d 100644 --- a/packages/core/lib/version.gen.dart +++ b/packages/core/lib/version.gen.dart @@ -1,2 +1,2 @@ /// DO NOT MODIFY BY HAND, Generated by version_gen -String packageVersion = '5.9.0'; +String packageVersion = '5.10.0'; diff --git a/packages/core/pubspec.yaml b/packages/core/pubspec.yaml index 72e6ccae..d6695fd8 100644 --- a/packages/core/pubspec.yaml +++ b/packages/core/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_gen_core description: The Flutter code generator for your assets, fonts, colors, … — Get rid of all String-based APIs. -version: 5.9.0 +version: 5.10.0 homepage: https://github.com/FlutterGen/flutter_gen repository: https://github.com/FlutterGen/flutter_gen documentation: https://github.com/FlutterGen/flutter_gen diff --git a/packages/runner/pubspec.yaml b/packages/runner/pubspec.yaml index 7a9c92e3..40e8efb1 100644 --- a/packages/runner/pubspec.yaml +++ b/packages/runner/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_gen_runner description: The Flutter code generator for your assets, fonts, colors, … — Get rid of all String-based APIs. -version: 5.9.0 +version: 5.10.0 homepage: https://github.com/FlutterGen/flutter_gen repository: https://github.com/FlutterGen/flutter_gen documentation: https://github.com/FlutterGen/flutter_gen @@ -10,7 +10,7 @@ environment: sdk: ^3.0.0 dependencies: - flutter_gen_core: 5.9.0 + flutter_gen_core: 5.10.0 build: ^2.0.0 collection: ^1.17.0 crypto: ^3.0.0