|
1 | 1 | import 'package:flutter/widgets.dart'; |
2 | | -import 'package:hyper_effects/hyper_effects.dart'; |
| 2 | +import '../hyper_effects.dart'; |
3 | 3 |
|
4 | 4 | /// A callback that returns whether an animation should be allowed |
5 | 5 | /// to follow through with its animation or be skipped completely, |
@@ -64,13 +64,13 @@ extension AnimatedEffectExt on Widget { |
64 | 64 |
|
65 | 65 | /// Animate the effects applied to this widget after the last animation |
66 | 66 | /// in the chain ends. |
67 | | - Widget animateAfter({ |
68 | | - Duration duration = const Duration(milliseconds: 350), |
69 | | - Curve curve = appleEaseInOut, |
70 | | - int repeat = 0, |
71 | | - bool reverse = false, |
72 | | - Duration delay = Duration.zero, |
73 | | - VoidCallback? onEnd, |
| 67 | + Widget animateAfter( |
| 68 | + {Duration duration = const Duration(milliseconds: 350), |
| 69 | + Curve curve = appleEaseInOut, |
| 70 | + int repeat = 0, |
| 71 | + bool reverse = false, |
| 72 | + Duration delay = Duration.zero, |
| 73 | + VoidCallback? onEnd, |
74 | 74 | BooleanCallback? playIf}) { |
75 | 75 | return AnimatedEffect( |
76 | 76 | triggerType: AnimationTriggerType.afterLast, |
@@ -100,13 +100,13 @@ extension AnimatedEffectExt on Widget { |
100 | 100 | /// |
101 | 101 | /// The [repeat] parameter is used to determine how the animation should be |
102 | 102 | /// repeated. |
103 | | - AnimatedEffect oneShot({ |
104 | | - Duration duration = const Duration(milliseconds: 350), |
105 | | - Curve curve = appleEaseInOut, |
106 | | - int repeat = 0, |
107 | | - bool reverse = false, |
108 | | - Duration delay = Duration.zero, |
109 | | - VoidCallback? onEnd, |
| 103 | + AnimatedEffect oneShot( |
| 104 | + {Duration duration = const Duration(milliseconds: 350), |
| 105 | + Curve curve = appleEaseInOut, |
| 106 | + int repeat = 0, |
| 107 | + bool reverse = false, |
| 108 | + Duration delay = Duration.zero, |
| 109 | + VoidCallback? onEnd, |
110 | 110 | BooleanCallback? playIf}) { |
111 | 111 | return AnimatedEffect( |
112 | 112 | triggerType: AnimationTriggerType.oneShot, |
|
0 commit comments