Skip to content

Commit a0650e9

Browse files
authored
release: Release v5.4.0 (#462)
## What does this change? Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. Fixes #<issue_number_goes_here> 🎯 ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [x] This change requires a documentation update ## Checklist: Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [x] Make sure to open a GitHub issue as a bug/feature request before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [x] Ensure the tests (`melos run test`) - [x] Ensure the analyzer and formatter pass (`melos run format` to automatically apply formatting) - [x] Appropriate docs were updated (if necessary)
1 parent 7882ed3 commit a0650e9

File tree

8 files changed

+25
-29
lines changed

8 files changed

+25
-29
lines changed

CHANGELOG.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
1+
## 5.4.0
2+
3+
**Feature**
4+
- [#435](https://github.com/FlutterGen/flutter_gen/pull/435) Allowed the generated values statement to optionally be static. [@bramp](https://github.com/bramp)
5+
6+
**Bug fix**
7+
- [#432](https://github.com/FlutterGen/flutter_gen/pull/432) Refactored the AssetGenImage code to be another Integration. [@bramp](https://github.com/bramp)
8+
9+
**Development**
10+
- [#438](https://github.com/FlutterGen/flutter_gen/pull/438) Fix module configurations.
11+
- Update to Dart 3.2.0.
12+
- Update to Flutter 3.16.0.
13+
114
## 5.3.2
215

316
**Bug fix**
417
- [#409](https://github.com/FlutterGen/flutter_gen/pull/409) Update dependencies.
518
- Update Dart SDK to `>=2.17.0 <4.0.0`.
619

7-
820
**Development**
921
- Update to Dart 3.1.2.
1022
- Update to Flutter 3.13.5.
1123

12-
1324
**Team**
1425
- Welcome [@AlexV525](https://github.com/AlexV525) 🎉
1526

examples/example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies:
2121
dev_dependencies:
2222
lints: ^2.0.0
2323
build_runner: ^2.0.0
24-
flutter_gen_runner: ^5.3.2
24+
flutter_gen_runner: ^5.4.0
2525

2626
flutter_gen:
2727
output: lib/gen/ # Optional (default: lib/gen/)

examples/example_resources/lib/gen/assets.gen.dart

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ class $AssetsUnknownGen {
5555
class ResAssets {
5656
ResAssets._();
5757

58-
static const String package = 'example_resources';
59-
6058
static const $AssetsImagesGen images = $AssetsImagesGen();
6159
static const $AssetsUnknownGen unknown = $AssetsUnknownGen();
6260
}
@@ -66,8 +64,6 @@ class AssetGenImage {
6664

6765
final String _assetName;
6866

69-
static const String package = 'example_resources';
70-
7167
Image image({
7268
Key? key,
7369
AssetBundle? bundle,
@@ -88,8 +84,7 @@ class AssetGenImage {
8884
bool matchTextDirection = false,
8985
bool gaplessPlayback = false,
9086
bool isAntiAlias = false,
91-
@Deprecated('Do not specify package for a generated library asset')
92-
String? package = package,
87+
String? package = 'example_resources',
9388
FilterQuality filterQuality = FilterQuality.low,
9489
int? cacheWidth,
9590
int? cacheHeight,
@@ -124,7 +119,7 @@ class AssetGenImage {
124119

125120
ImageProvider provider({
126121
AssetBundle? bundle,
127-
String? package = package,
122+
String? package = 'example_resources',
128123
}) {
129124
return AssetImage(
130125
_assetName,
@@ -143,14 +138,11 @@ class SvgGenImage {
143138

144139
final String _assetName;
145140

146-
static const String package = 'example_resources';
147-
148141
SvgPicture svg({
149142
Key? key,
150143
bool matchTextDirection = false,
151144
AssetBundle? bundle,
152-
@Deprecated('Do not specify package for a generated library asset')
153-
String? package = package,
145+
String? package = 'example_resources',
154146
double? width,
155147
double? height,
156148
BoxFit fit = BoxFit.contain,
@@ -199,8 +191,6 @@ class FlareGenImage {
199191

200192
final String _assetName;
201193

202-
static const String package = 'example_resources';
203-
204194
FlareActor flare({
205195
String? boundsNode,
206196
String? animation,
@@ -244,8 +234,6 @@ class RiveGenImage {
244234

245235
final String _assetName;
246236

247-
static const String package = 'example_resources';
248-
249237
RiveAnimation rive({
250238
String? artboard,
251239
List<String> animations = const [],
@@ -281,8 +269,6 @@ class LottieGenImage {
281269

282270
final String _assetName;
283271

284-
static const String package = 'example_resources';
285-
286272
LottieBuilder lottie({
287273
Animation<double>? controller,
288274
bool? animate,
@@ -301,8 +287,7 @@ class LottieGenImage {
301287
double? height,
302288
BoxFit? fit,
303289
AlignmentGeometry? alignment,
304-
@Deprecated('Do not specify package for a generated library asset')
305-
String? package = package,
290+
String? package = 'example_resources',
306291
bool? addRepaintBoundary,
307292
FilterQuality? filterQuality,
308293
void Function(String)? onWarning,

examples/example_resources/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies:
1717

1818
dev_dependencies:
1919
build_runner: ^2.0.0
20-
flutter_gen_runner: ^5.3.2
20+
flutter_gen_runner: ^5.4.0
2121

2222
flutter_gen:
2323
output: lib/gen/

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.3.2
3+
version: 5.4.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.3.2
16+
flutter_gen_core: 5.4.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.3.2';
2+
String packageVersion = '5.4.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.3.2
3+
version: 5.4.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.3.2
3+
version: 5.4.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: '>=2.17.0 <4.0.0'
1111

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

0 commit comments

Comments
 (0)