Skip to content

Commit c1268df

Browse files
committed
Drop widget.child from flip_effect.dart
1 parent 0d4a291 commit c1268df

File tree

9 files changed

+20
-20
lines changed

9 files changed

+20
-20
lines changed

animations/codelab_rebuild.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -821,8 +821,8 @@ steps:
821821
child: _animationController.isAnimating
822822
? _animationController.value < 0.5
823823
? _previousChild
824-
: Transform.flip(flipY: true, child: widget.child)
825-
: widget.child,
824+
: Transform.flip(flipY: true, child: child)
825+
: child,
826826
);
827827
},
828828
child: widget.child,
@@ -1001,8 +1001,8 @@ steps:
10011001
- ? _animationController.value < 0.5
10021002
+ ? _animationWithDelay.value < 0.5
10031003
? _previousChild
1004-
: Transform.flip(flipY: true, child: widget.child)
1005-
: widget.child,
1004+
: Transform.flip(flipY: true, child: child)
1005+
: child,
10061006
- name: Copy step_04_d
10071007
copydir:
10081008
from: quiz

animations/step_04_a/lib/flip_effect.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ class _CardFlipEffectState extends State<CardFlipEffect>
6161
child: _animationController.isAnimating
6262
? _animationController.value < 0.5
6363
? _previousChild
64-
: Transform.flip(flipY: true, child: widget.child)
65-
: widget.child,
64+
: Transform.flip(flipY: true, child: child)
65+
: child,
6666
);
6767
},
6868
child: widget.child,

animations/step_04_b/lib/flip_effect.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ class _CardFlipEffectState extends State<CardFlipEffect>
6363
child: _animationController.isAnimating
6464
? _animationController.value < 0.5
6565
? _previousChild
66-
: Transform.flip(flipY: true, child: widget.child)
67-
: widget.child,
66+
: Transform.flip(flipY: true, child: child)
67+
: child,
6868
);
6969
},
7070
child: widget.child,

animations/step_04_c/lib/flip_effect.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ class _CardFlipEffectState extends State<CardFlipEffect>
7676
child: _animationController.isAnimating
7777
? _animationController.value < 0.5
7878
? _previousChild
79-
: Transform.flip(flipY: true, child: widget.child)
80-
: widget.child,
79+
: Transform.flip(flipY: true, child: child)
80+
: child,
8181
);
8282
},
8383
child: widget.child,

animations/step_04_d/lib/flip_effect.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ class _CardFlipEffectState extends State<CardFlipEffect>
7676
child: _animationController.isAnimating
7777
? _animationWithDelay.value < 0.5
7878
? _previousChild
79-
: Transform.flip(flipY: true, child: widget.child)
80-
: widget.child,
79+
: Transform.flip(flipY: true, child: child)
80+
: child,
8181
);
8282
},
8383
child: widget.child,

animations/step_05_a/lib/flip_effect.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ class _CardFlipEffectState extends State<CardFlipEffect>
7676
child: _animationController.isAnimating
7777
? _animationWithDelay.value < 0.5
7878
? _previousChild
79-
: Transform.flip(flipY: true, child: widget.child)
80-
: widget.child,
79+
: Transform.flip(flipY: true, child: child)
80+
: child,
8181
);
8282
},
8383
child: widget.child,

animations/step_05_b/lib/flip_effect.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ class _CardFlipEffectState extends State<CardFlipEffect>
7676
child: _animationController.isAnimating
7777
? _animationWithDelay.value < 0.5
7878
? _previousChild
79-
: Transform.flip(flipY: true, child: widget.child)
80-
: widget.child,
79+
: Transform.flip(flipY: true, child: child)
80+
: child,
8181
);
8282
},
8383
child: widget.child,

animations/step_05_c/lib/flip_effect.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ class _CardFlipEffectState extends State<CardFlipEffect>
7676
child: _animationController.isAnimating
7777
? _animationWithDelay.value < 0.5
7878
? _previousChild
79-
: Transform.flip(flipY: true, child: widget.child)
80-
: widget.child,
79+
: Transform.flip(flipY: true, child: child)
80+
: child,
8181
);
8282
},
8383
child: widget.child,

animations/step_05_d/lib/flip_effect.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ class _CardFlipEffectState extends State<CardFlipEffect>
7676
child: _animationController.isAnimating
7777
? _animationWithDelay.value < 0.5
7878
? _previousChild
79-
: Transform.flip(flipY: true, child: widget.child)
80-
: widget.child,
79+
: Transform.flip(flipY: true, child: child)
80+
: child,
8181
);
8282
},
8383
child: widget.child,

0 commit comments

Comments
 (0)