Skip to content

Commit

Permalink
Drop widget.child from flip_effect.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
domesticmouse committed Nov 21, 2024
1 parent 0d4a291 commit c1268df
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions animations/codelab_rebuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -821,8 +821,8 @@ steps:
child: _animationController.isAnimating
? _animationController.value < 0.5
? _previousChild
: Transform.flip(flipY: true, child: widget.child)
: widget.child,
: Transform.flip(flipY: true, child: child)
: child,
);
},
child: widget.child,
Expand Down Expand Up @@ -1001,8 +1001,8 @@ steps:
- ? _animationController.value < 0.5
+ ? _animationWithDelay.value < 0.5
? _previousChild
: Transform.flip(flipY: true, child: widget.child)
: widget.child,
: Transform.flip(flipY: true, child: child)
: child,
- name: Copy step_04_d
copydir:
from: quiz
Expand Down
4 changes: 2 additions & 2 deletions animations/step_04_a/lib/flip_effect.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ class _CardFlipEffectState extends State<CardFlipEffect>
child: _animationController.isAnimating
? _animationController.value < 0.5
? _previousChild
: Transform.flip(flipY: true, child: widget.child)
: widget.child,
: Transform.flip(flipY: true, child: child)
: child,
);
},
child: widget.child,
Expand Down
4 changes: 2 additions & 2 deletions animations/step_04_b/lib/flip_effect.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ class _CardFlipEffectState extends State<CardFlipEffect>
child: _animationController.isAnimating
? _animationController.value < 0.5
? _previousChild
: Transform.flip(flipY: true, child: widget.child)
: widget.child,
: Transform.flip(flipY: true, child: child)
: child,
);
},
child: widget.child,
Expand Down
4 changes: 2 additions & 2 deletions animations/step_04_c/lib/flip_effect.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ class _CardFlipEffectState extends State<CardFlipEffect>
child: _animationController.isAnimating
? _animationController.value < 0.5
? _previousChild
: Transform.flip(flipY: true, child: widget.child)
: widget.child,
: Transform.flip(flipY: true, child: child)
: child,
);
},
child: widget.child,
Expand Down
4 changes: 2 additions & 2 deletions animations/step_04_d/lib/flip_effect.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ class _CardFlipEffectState extends State<CardFlipEffect>
child: _animationController.isAnimating
? _animationWithDelay.value < 0.5
? _previousChild
: Transform.flip(flipY: true, child: widget.child)
: widget.child,
: Transform.flip(flipY: true, child: child)
: child,
);
},
child: widget.child,
Expand Down
4 changes: 2 additions & 2 deletions animations/step_05_a/lib/flip_effect.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ class _CardFlipEffectState extends State<CardFlipEffect>
child: _animationController.isAnimating
? _animationWithDelay.value < 0.5
? _previousChild
: Transform.flip(flipY: true, child: widget.child)
: widget.child,
: Transform.flip(flipY: true, child: child)
: child,
);
},
child: widget.child,
Expand Down
4 changes: 2 additions & 2 deletions animations/step_05_b/lib/flip_effect.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ class _CardFlipEffectState extends State<CardFlipEffect>
child: _animationController.isAnimating
? _animationWithDelay.value < 0.5
? _previousChild
: Transform.flip(flipY: true, child: widget.child)
: widget.child,
: Transform.flip(flipY: true, child: child)
: child,
);
},
child: widget.child,
Expand Down
4 changes: 2 additions & 2 deletions animations/step_05_c/lib/flip_effect.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ class _CardFlipEffectState extends State<CardFlipEffect>
child: _animationController.isAnimating
? _animationWithDelay.value < 0.5
? _previousChild
: Transform.flip(flipY: true, child: widget.child)
: widget.child,
: Transform.flip(flipY: true, child: child)
: child,
);
},
child: widget.child,
Expand Down
4 changes: 2 additions & 2 deletions animations/step_05_d/lib/flip_effect.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ class _CardFlipEffectState extends State<CardFlipEffect>
child: _animationController.isAnimating
? _animationWithDelay.value < 0.5
? _previousChild
: Transform.flip(flipY: true, child: widget.child)
: widget.child,
: Transform.flip(flipY: true, child: child)
: child,
);
},
child: widget.child,
Expand Down

0 comments on commit c1268df

Please sign in to comment.