Skip to content

Commit ae20377

Browse files
Update repo for 3.38 (#10405)
Does all of the steps from https://github.com/flutter/flutter/blob/master/docs/ecosystem/release/Updating-Packages-repo-for-a-stable-release.md for the 3.38 release (except the first one, which the stable roller will handle). This includes a lot of autoformat changes, because the N-2 is now 3.32, which means many packages are now being updated to a min Dart SDK of 3.8, triggering a formatter behavior change.
1 parent e5ecaf7 commit ae20377

File tree

605 files changed

+9279
-9819
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

605 files changed

+9279
-9819
lines changed

.ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,21 +327,21 @@ targets:
327327
timeout: 30
328328
properties:
329329
target_file: analyze_legacy.yaml
330-
channel: "3.32.8"
330+
channel: "3.35.7"
331331
env_variables: >-
332332
{
333-
"CHANNEL": "3.32.8"
333+
"CHANNEL": "3.35.7"
334334
}
335335
336336
- name: Linux analyze_legacy N-2
337337
recipe: packages/packages
338338
timeout: 30
339339
properties:
340340
target_file: analyze_legacy.yaml
341-
channel: "3.29.3"
341+
channel: "3.32.8"
342342
env_variables: >-
343343
{
344-
"CHANNEL": "3.29.3"
344+
"CHANNEL": "3.32.8"
345345
}
346346
347347
- name: Linux_android custom_package_tests master

.ci/targets/repo_checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ tasks:
2828
script: .ci/scripts/tool_runner.sh
2929
args:
3030
- "pubspec-check"
31-
- "--min-min-flutter-version=3.27.0"
31+
- "--min-min-flutter-version=3.32.0"
3232
- "--allow-dependencies=script/configs/allowed_unpinned_deps.yaml"
3333
- "--allow-pinned-dependencies=script/configs/allowed_pinned_deps.yaml"
3434
always: true

packages/animations/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## NEXT
2+
3+
* Updates minimum supported SDK version to Flutter 3.32/Dart 3.8.
4+
15
## 2.1.0
26

37
* Updates examples to use the new RadioGroup API instead of deprecated Radio parameters.

packages/animations/example/lib/container_transition.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,9 @@ class _OpenContainerTransformDemoState
8484
onPressed: (int index) {
8585
setModalState(() {
8686
setState(() {
87-
_transitionType =
88-
index == 0
89-
? ContainerTransitionType.fade
90-
: ContainerTransitionType.fadeThrough;
87+
_transitionType = index == 0
88+
? ContainerTransitionType.fade
89+
: ContainerTransitionType.fadeThrough;
9190
});
9291
});
9392
},

packages/animations/example/lib/fade_scale_transition.dart

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,19 @@ class _FadeScaleTransitionDemoState extends State<FadeScaleTransitionDemo>
2121

2222
@override
2323
void initState() {
24-
_controller = AnimationController(
25-
value: 0.0,
26-
duration: const Duration(milliseconds: 150),
27-
reverseDuration: const Duration(milliseconds: 75),
28-
vsync: this,
29-
)..addStatusListener((AnimationStatus status) {
30-
setState(() {
31-
// setState needs to be called to trigger a rebuild because
32-
// the 'HIDE FAB'/'SHOW FAB' button needs to be updated based
33-
// the latest value of [_controller.status].
34-
});
35-
});
24+
_controller =
25+
AnimationController(
26+
value: 0.0,
27+
duration: const Duration(milliseconds: 150),
28+
reverseDuration: const Duration(milliseconds: 75),
29+
vsync: this,
30+
)..addStatusListener((AnimationStatus status) {
31+
setState(() {
32+
// setState needs to be called to trigger a rebuild because
33+
// the 'HIDE FAB'/'SHOW FAB' button needs to be updated based
34+
// the latest value of [_controller.status].
35+
});
36+
});
3637
super.initState();
3738
}
3839

@@ -99,10 +100,9 @@ class _FadeScaleTransitionDemoState extends State<FadeScaleTransitionDemo>
99100
_controller.forward();
100101
}
101102
},
102-
child:
103-
_isAnimationRunningForwardsOrComplete
104-
? const Text('HIDE FAB')
105-
: const Text('SHOW FAB'),
103+
child: _isAnimationRunningForwardsOrComplete
104+
? const Text('HIDE FAB')
105+
: const Text('SHOW FAB'),
106106
),
107107
],
108108
),

packages/animations/example/lib/fade_through_transition.dart

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,18 @@ class _FadeThroughTransitionDemoState extends State<FadeThroughTransitionDemo> {
2525
return Scaffold(
2626
appBar: AppBar(title: const Text('Fade through')),
2727
body: PageTransitionSwitcher(
28-
transitionBuilder: (
29-
Widget child,
30-
Animation<double> animation,
31-
Animation<double> secondaryAnimation,
32-
) {
33-
return FadeThroughTransition(
34-
animation: animation,
35-
secondaryAnimation: secondaryAnimation,
36-
child: child,
37-
);
38-
},
28+
transitionBuilder:
29+
(
30+
Widget child,
31+
Animation<double> animation,
32+
Animation<double> secondaryAnimation,
33+
) {
34+
return FadeThroughTransition(
35+
animation: animation,
36+
secondaryAnimation: secondaryAnimation,
37+
child: child,
38+
);
39+
},
3940
child: pageList[pageIndex],
4041
),
4142
bottomNavigationBar: BottomNavigationBar(

packages/animations/example/lib/shared_axis_transition.dart

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,19 @@ class _SharedAxisTransitionDemoState extends State<SharedAxisTransitionDemo> {
4444
Expanded(
4545
child: PageTransitionSwitcher(
4646
reverse: !_isLoggedIn,
47-
transitionBuilder: (
48-
Widget child,
49-
Animation<double> animation,
50-
Animation<double> secondaryAnimation,
51-
) {
52-
return SharedAxisTransition(
53-
animation: animation,
54-
secondaryAnimation: secondaryAnimation,
55-
transitionType: _transitionType!,
56-
child: child,
57-
);
58-
},
47+
transitionBuilder:
48+
(
49+
Widget child,
50+
Animation<double> animation,
51+
Animation<double> secondaryAnimation,
52+
) {
53+
return SharedAxisTransition(
54+
animation: animation,
55+
secondaryAnimation: secondaryAnimation,
56+
transitionType: _transitionType!,
57+
child: child,
58+
);
59+
},
5960
child: _isLoggedIn ? _CoursePage() : _SignInPage(),
6061
),
6162
),

packages/animations/example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ publish_to: none
66
version: 0.0.1
77

88
environment:
9-
sdk: ^3.7.0
10-
flutter: ">=3.29.0"
9+
sdk: ^3.8.0
10+
flutter: ">=3.32.0"
1111

1212
dependencies:
1313
animations:

packages/animations/lib/src/fade_scale_transition.dart

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -137,29 +137,23 @@ class FadeScaleTransition extends StatelessWidget {
137137
Widget build(BuildContext context) {
138138
return DualTransitionBuilder(
139139
animation: animation,
140-
forwardBuilder: (
141-
BuildContext context,
142-
Animation<double> animation,
143-
Widget? child,
144-
) {
145-
return FadeTransition(
146-
opacity: _fadeInTransition.animate(animation),
147-
child: ScaleTransition(
148-
scale: _scaleInTransition.animate(animation),
149-
child: child,
150-
),
151-
);
152-
},
153-
reverseBuilder: (
154-
BuildContext context,
155-
Animation<double> animation,
156-
Widget? child,
157-
) {
158-
return FadeTransition(
159-
opacity: _fadeOutTransition.animate(animation),
160-
child: child,
161-
);
162-
},
140+
forwardBuilder:
141+
(BuildContext context, Animation<double> animation, Widget? child) {
142+
return FadeTransition(
143+
opacity: _fadeInTransition.animate(animation),
144+
child: ScaleTransition(
145+
scale: _scaleInTransition.animate(animation),
146+
child: child,
147+
),
148+
);
149+
},
150+
reverseBuilder:
151+
(BuildContext context, Animation<double> animation, Widget? child) {
152+
return FadeTransition(
153+
opacity: _fadeOutTransition.animate(animation),
154+
child: child,
155+
);
156+
},
163157
child: child,
164158
);
165159
}

packages/animations/lib/src/fade_through_transition.dart

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -222,20 +222,14 @@ class _ZoomedFadeInFadeOut extends StatelessWidget {
222222
Widget build(BuildContext context) {
223223
return DualTransitionBuilder(
224224
animation: animation,
225-
forwardBuilder: (
226-
BuildContext context,
227-
Animation<double> animation,
228-
Widget? child,
229-
) {
230-
return _ZoomedFadeIn(animation: animation, child: child);
231-
},
232-
reverseBuilder: (
233-
BuildContext context,
234-
Animation<double> animation,
235-
Widget? child,
236-
) {
237-
return _FadeOut(animation: animation, child: child);
238-
},
225+
forwardBuilder:
226+
(BuildContext context, Animation<double> animation, Widget? child) {
227+
return _ZoomedFadeIn(animation: animation, child: child);
228+
},
229+
reverseBuilder:
230+
(BuildContext context, Animation<double> animation, Widget? child) {
231+
return _FadeOut(animation: animation, child: child);
232+
},
239233
child: child,
240234
);
241235
}

0 commit comments

Comments
 (0)