Skip to content

Commit eaf8ab8

Browse files
committed
More cleanup
1 parent 1db5620 commit eaf8ab8

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

lib/animate.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class Animate extends StatefulWidget with AnimateManager<Animate> {
134134
/// ```
135135
final AnimateCallback? onPlay;
136136

137-
/// Defines a delay before the animation is started. Unlike [BeginEndEffect.delay],
137+
/// Defines a delay before the animation is started. Unlike [Effect.delay],
138138
/// this is not a part of the overall animation, and only runs once if the
139139
/// animation is looped. [onPlay] is called after this delay.
140140
final Duration delay;
@@ -163,7 +163,7 @@ class Animate extends StatefulWidget with AnimateManager<Animate> {
163163
@override
164164
State<Animate> createState() => _AnimateState();
165165

166-
/// Adds an effect. This is mostly used by [BeginEndEffect] extension methods to append effects
166+
/// Adds an effect. This is mostly used by [Effect] extension methods to append effects
167167
/// to an [Animate] instance.
168168
@override
169169
Animate addEffect(Effect effect) {
@@ -284,7 +284,7 @@ class _AnimateState extends State<Animate> with SingleTickerProviderStateMixin {
284284
extension AnimateWidgetExtensions on Widget {
285285
Animate animate({
286286
Key? key,
287-
List<BeginEndEffect>? effects,
287+
List<Effect>? effects,
288288
AnimateCallback? onComplete,
289289
AnimateCallback? onPlay,
290290
Duration delay = Duration.zero,

lib/animate_list.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class AnimateList<T extends Widget> extends ListBase<Widget> with AnimateManager
4646
/// instance, and proxy any added effects to each of them.
4747
AnimateList({
4848
required List<Widget> children,
49-
List<BeginEndEffect>? effects,
49+
List<Effect>? effects,
5050
Duration? interval,
5151
AnimateCallback? onPlay,
5252
AnimateCallback? onComplete,
@@ -75,7 +75,7 @@ class AnimateList<T extends Widget> extends ListBase<Widget> with AnimateManager
7575
final List<Widget> _widgets = [];
7676
final List<Animate> _managers = [];
7777

78-
/// Adds an effect. This is mostly used by [BeginEndEffect] extension methods to
78+
/// Adds an effect. This is mostly used by [Effect] extension methods to
7979
/// append effects to an [AnimateList] instance.
8080
@override
8181
AnimateList addEffect(Effect effect) {
@@ -107,7 +107,7 @@ class AnimateList<T extends Widget> extends ListBase<Widget> with AnimateManager
107107
/// Ex. `[foo, bar].animate()` is equivalent to `AnimateList(children: [foo, bar])`.
108108
extension AnimateListExtensions on List<Widget> {
109109
AnimateList animate({
110-
List<BeginEndEffect>? effects,
110+
List<Effect>? effects,
111111
Duration? interval,
112112
AnimateCallback? onPlay,
113113
AnimateCallback? onComplete,

lib/effects/variations/fade_in.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'package:flutter/widgets.dart';
2-
import 'package:flutter_animate/effects/variations/slide_in.dart';
32

43
import '../../flutter_animate.dart';
54

0 commit comments

Comments
 (0)