Skip to content

Commit

Permalink
πŸ”– 5.10.0 (#670)
Browse files Browse the repository at this point in the history
## 5.10.0

**Feature**
- [#659](#659) Add support
Telegram Sticker `.tgs` in Lottie Integration. by
[@dungngminh](https://github.com/dungngminh)

**Bug fix**
- [#653](#653) Constraints
`dart_style` to `>=2.3.7`. by [@AlexV525](https://github.com/AlexV525)
- [#656](#656) Add missing
parameters in Lottie integration from lottie 3.0.0. by
[@dungngminh](https://github.com/dungngminh)
- [#658](#658) Update
required dart version. by [@koji-1009](https://github.com/koji-1009)
  • Loading branch information
AlexV525 authored Mar 2, 2025
1 parent f426a10 commit 381d7af
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 42 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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**
Expand Down
72 changes: 36 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.
Expand Down Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions packages/command/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/core/lib/version.gen.dart
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/// DO NOT MODIFY BY HAND, Generated by version_gen
String packageVersion = '5.9.0';
String packageVersion = '5.10.0';
2 changes: 1 addition & 1 deletion packages/core/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/runner/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 381d7af

Please sign in to comment.