Skip to content

Commit 381d7af

Browse files
authored
πŸ”– 5.10.0 (#670)
## 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)
1 parent f426a10 commit 381d7af

File tree

6 files changed

+52
-42
lines changed

6 files changed

+52
-42
lines changed

β€ŽCHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 5.10.0
2+
3+
**Feature**
4+
- [#659](https://github.com/FlutterGen/flutter_gen/pull/659) Add support Telegram Sticker `.tgs` in Lottie Integration. by [@dungngminh](https://github.com/dungngminh)
5+
6+
**Bug fix**
7+
- [#653](https://github.com/FlutterGen/flutter_gen/pull/653) Constraints `dart_style` to `>=2.3.7`. by [@AlexV525](https://github.com/AlexV525)
8+
- [#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)
9+
- [#658](https://github.com/FlutterGen/flutter_gen/pull/658) Update required dart version. by [@koji-1009](https://github.com/koji-1009)
10+
111
## 5.9.0
212

313
**Feature**

β€ŽREADME.md

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -53,30 +53,27 @@ Widget build(BuildContext context) {
5353

5454
## Installation
5555

56-
### Homebrew
56+
### As a part of build_runner
5757

58-
Works with macOS and Linux.
58+
1. Add [build_runner] and [FlutterGen] to your package's pubspec.yaml file:
5959

60-
```sh
61-
brew install FlutterGen/tap/fluttergen
62-
```
60+
```yaml
61+
dev_dependencies:
62+
build_runner:
63+
flutter_gen_runner:
64+
```
6365
64-
### asdf
66+
2. Install [FlutterGen]
6567
66-
Works with macOS and Linux.
67-
asdf-fluttergen is compatible with [mise](https://mise.jdx.dev/).
68+
```sh
69+
flutter pub get
70+
```
6871

69-
```sh
70-
# add plugin
71-
asdf plugin add fluttergen
72-
# or
73-
asdf plugin add fluttergen https://github.com/FlutterGen/asdf-fluttergen.git
74-
75-
# install fluttergen
76-
asdf install fluttergen latest
77-
```
72+
3. Use [FlutterGen]
7873

79-
See also: [FlutterGen/asdf-fluttergen](https://github.com/FlutterGen/asdf-fluttergen)
74+
```sh
75+
dart run build_runner build
76+
```
8077

8178
### Pub Global
8279

@@ -88,28 +85,31 @@ dart pub global activate flutter_gen
8885

8986
You might need to [set up your path](https://dart.dev/tools/pub/cmd/pub-global#running-a-script-from-your-path).
9087

91-
### As a part of build_runner
92-
93-
1. Add [build_runner] and [FlutterGen] to your package's pubspec.yaml file:
94-
95-
```
96-
dev_dependencies:
97-
build_runner:
98-
flutter_gen_runner:
99-
```
88+
### Homebrew
10089

101-
2. Install [FlutterGen]
90+
Works with macOS and Linux.
10291

10392
```sh
104-
flutter pub get
93+
brew install FlutterGen/tap/fluttergen
10594
```
10695

107-
3. Use [FlutterGen]
96+
### asdf
97+
98+
Works with macOS and Linux.
99+
asdf-fluttergen is compatible with [mise](https://mise.jdx.dev/).
108100

109101
```sh
110-
dart run build_runner build
102+
# add plugin
103+
asdf plugin add fluttergen
104+
# or
105+
asdf plugin add fluttergen https://github.com/FlutterGen/asdf-fluttergen.git
106+
107+
# install fluttergen
108+
asdf install fluttergen latest
111109
```
112110

111+
See also: [FlutterGen/asdf-fluttergen](https://github.com/FlutterGen/asdf-fluttergen)
112+
113113
### GitHub Actions
114114

115115
Works with macOS and Linux.
@@ -404,11 +404,11 @@ Widget build(BuildContext context) {
404404

405405
**Available Integrations**
406406

407-
| Packages | File extension | Setting | Usage |
408-
|---------------------------------------------------------|----------------------|-----------------------|-------------------------------------------|
409-
| [flutter_svg](https://pub.dev/packages/flutter_svg) | .svg | `flutter_svg: true` | Assets.images.icons.paint.**svg()** |
410-
| [rive](https://pub.dev/packages/rive) | .riv | `rive: true` | Assets.rive.vehicles.**rive()** |
411-
| [lottie](https://pub.dev/packages/lottie) | .json, .zip, .lottie, .tgs | `lottie: true` | Assets.lottie.hamburgerArrow.**lottie()** |
407+
| Packages | File extension | Setting | Usage |
408+
|-----------------------------------------------------|----------------------------|---------------------|-------------------------------------------|
409+
| [flutter_svg](https://pub.dev/packages/flutter_svg) | .svg | `flutter_svg: true` | Assets.images.icons.paint.**svg()** |
410+
| [rive](https://pub.dev/packages/rive) | .riv | `rive: true` | Assets.rive.vehicles.**rive()** |
411+
| [lottie](https://pub.dev/packages/lottie) | .json, .zip, .lottie, .tgs | `lottie: true` | Assets.lottie.hamburgerArrow.**lottie()** |
412412

413413
**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.
414414

β€Žpackages/command/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_gen
22
description: The Flutter code generator for your assets, fonts, colors, … β€” Get rid of all String-based APIs.
3-
version: 5.9.0
3+
version: 5.10.0
44
homepage: https://github.com/FlutterGen/flutter_gen
55
repository: https://github.com/FlutterGen/flutter_gen
66
documentation: https://github.com/FlutterGen/flutter_gen
@@ -13,7 +13,7 @@ executables:
1313
fluttergen: flutter_gen_command
1414

1515
dependencies:
16-
flutter_gen_core: 5.9.0
16+
flutter_gen_core: 5.10.0
1717
args: ^2.0.0
1818

1919
dev_dependencies:

β€Žpackages/core/lib/version.gen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
/// DO NOT MODIFY BY HAND, Generated by version_gen
2-
String packageVersion = '5.9.0';
2+
String packageVersion = '5.10.0';

β€Žpackages/core/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_gen_core
22
description: The Flutter code generator for your assets, fonts, colors, … β€” Get rid of all String-based APIs.
3-
version: 5.9.0
3+
version: 5.10.0
44
homepage: https://github.com/FlutterGen/flutter_gen
55
repository: https://github.com/FlutterGen/flutter_gen
66
documentation: https://github.com/FlutterGen/flutter_gen

β€Žpackages/runner/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_gen_runner
22
description: The Flutter code generator for your assets, fonts, colors, … β€” Get rid of all String-based APIs.
3-
version: 5.9.0
3+
version: 5.10.0
44
homepage: https://github.com/FlutterGen/flutter_gen
55
repository: https://github.com/FlutterGen/flutter_gen
66
documentation: https://github.com/FlutterGen/flutter_gen
@@ -10,7 +10,7 @@ environment:
1010
sdk: ^3.0.0
1111

1212
dependencies:
13-
flutter_gen_core: 5.9.0
13+
flutter_gen_core: 5.10.0
1414
build: ^2.0.0
1515
collection: ^1.17.0
1616
crypto: ^3.0.0

0 commit comments

Comments
Β (0)