Skip to content

Commit 9f3ce4c

Browse files
committed
Fix dart format
1 parent f40653a commit 9f3ce4c

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

animations/codelab_rebuild.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,6 @@ steps:
611611
copydir:
612612
from: quiz
613613
to: step_02_e
614-
615614
# TODO(DomesticMouse): Delete step_02 once the codelab is published with individual steps
616615
- name: Remove step_02
617616
rmdir: step_02
@@ -772,8 +771,8 @@ steps:
772771
void initState() {
773772
super.initState();
774773
775-
_animationController = AnimationController(
776-
vsync: this, duration: widget.duration);
774+
_animationController =
775+
AnimationController(vsync: this, duration: widget.duration);
777776
778777
_animationController.addListener(() {
779778
if (_animationController.value == 1) {
@@ -927,8 +926,9 @@ steps:
927926
void initState() {
928927
super.initState();
929928
930-
_animationController = AnimationController(
931-
- vsync: this, duration: widget.duration);
929+
- _animationController =
930+
- AnimationController(vsync: this, duration: widget.duration);
931+
+ _animationController = AnimationController(
932932
+ vsync: this, duration: widget.duration * (widget.delayAmount + 1));
933933
934934
_animationController.addListener(() {
@@ -986,7 +986,6 @@ steps:
986986
copydir:
987987
from: quiz
988988
to: step_04_d
989-
990989
# TODO(DomesticMouse): Delete step_04 once the codelab is published with individual steps
991990
- name: Remove step_04
992991
rmdir: step_04
@@ -1075,7 +1074,6 @@ steps:
10751074
),
10761075
home: HomeScreen(),
10771076
);
1078-
10791077
- name: Change back to MaterialPageRoute
10801078
path: quiz/lib/home_screen.dart
10811079
patch-u: |
@@ -1328,7 +1326,6 @@ steps:
13281326
),
13291327
);
13301328
}
1331-
13321329
- name: Build Android app
13331330
platforms: [ macos ]
13341331
path: quiz
@@ -1352,8 +1349,6 @@ steps:
13521349
- name: Build Web app
13531350
path: quiz
13541351
flutter: build web
1355-
1356-
# TODO(DomesticMouse): Delete step_05 once the codelab is published with individual steps
13571352
- name: Remove step_05
13581353
rmdir: step_05
13591354
- name: Copy step_05

animations/step_04_a/lib/flip_effect.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class _CardFlipEffectState extends State<CardFlipEffect>
2424
void initState() {
2525
super.initState();
2626

27-
_animationController = AnimationController(
28-
vsync: this, duration: widget.duration);
27+
_animationController =
28+
AnimationController(vsync: this, duration: widget.duration);
2929

3030
_animationController.addListener(() {
3131
if (_animationController.value == 1) {

animations/step_04_b/lib/flip_effect.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class _CardFlipEffectState extends State<CardFlipEffect>
2626
void initState() {
2727
super.initState();
2828

29-
_animationController = AnimationController(
30-
vsync: this, duration: widget.duration);
29+
_animationController =
30+
AnimationController(vsync: this, duration: widget.duration);
3131

3232
_animationController.addListener(() {
3333
if (_animationController.value == 1) {

0 commit comments

Comments
 (0)