You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Wrap any widget with [GFAnimation] to animate your widget. see [GFAnimationType] for types of animations.
5
6
constGFAnimation({
6
7
Key key,
7
8
this.duration,
@@ -37,13 +38,13 @@ class GFAnimation extends StatefulWidget {
37
38
/// The duration for animation to perform
38
39
finalDuration duration;
39
40
40
-
/// The duration for animation to perform
41
+
/// The duration for reverse animation to perform
41
42
finalDuration reverseDuration;
42
43
43
-
/// Defines how the animated widget is aligned within the Animation.
44
+
/// Defines how the animated widget is aligned during Animation.
44
45
finalAlignment alignment;
45
46
46
-
/// Defines how the animated widget is aligned(after the onTap) within the Animation.
47
+
/// Defines how the animated widget is aligned(after the onTap) during Animation.
47
48
finalAlignment activeAlignment;
48
49
49
50
/// The child of type [Widget] to display animation effect.
@@ -52,19 +53,20 @@ class GFAnimation extends StatefulWidget {
52
53
/// Determines the animation curve. Defaults to [Curves.linear].
53
54
finalCurve curve;
54
55
55
-
///type of [GFAnimation] which takes the type ie, align, size, container, rotateTransition, scaleTransition, slideTransition, and textStyle for the [GFAnimation]
56
+
///type of [GFAnimation] which takes the type ie, align, size, container,
57
+
/// rotateTransition, scaleTransition, slideTransition, and textStyle for the [GFAnimation]
56
58
finalGFAnimationType type;
57
59
58
60
/// defines [AnimatedContainer] initial width
59
61
finaldouble width;
60
62
61
-
/// defines the width of [AnimatedContainer] upto which it can extend during animation
63
+
/// defines the width of [AnimatedContainer] upto which it can expand during animation
62
64
finaldouble changedWidth;
63
65
64
66
/// defines [AnimatedContainer] initial height
65
67
finaldouble height;
66
68
67
-
/// defines the height of [AnimatedContainer] upto which it can extend during animation
69
+
/// defines the height of [AnimatedContainer] upto which it can expand during animation
68
70
finaldouble changedHeight;
69
71
70
72
/// defines the color of [AnimatedContainer] when onTap triggers
@@ -82,42 +84,40 @@ class GFAnimation extends StatefulWidget {
82
84
/// Called when the user taps the [child]
83
85
finalFunction onTap;
84
86
85
-
/// Here's an illustration of the [RotationTransition] widget, with it's [turnsAnimation]
86
-
/// animated by a stuckValue set to animate
87
+
/// For GFAnimationType.rotateTransition, customized turns animation can be added to [RotationTransition] widget
87
88
finalAnimation<double> turnsAnimation;
88
89
89
-
/// Here's an illustration of the [ScaleTransition] widget, with it's [scaleAnimation]
90
-
/// animated by a [CurvedAnimation] set to [Curves.linear]
90
+
/// For GFAnimationType.scaleTransition, customized scale animation can be added to [ScaleTransition] widget
91
91
finalAnimation<double> scaleAnimation;
92
92
93
-
/// controls animation
93
+
/// Type of [AnimationController], its a controller of an animation.
94
94
finalAnimationController controller;
95
95
96
-
///direction of the [AnimatedDefaultTextStyle] TextDirection for[ltr,rtl]
96
+
/// Defines direction of the [AnimatedDefaultTextStyle] TextDirection i.e[ltr,rtl]
97
97
finalTextDirection textDirection;
98
98
99
-
/// [ScaleTransition], which animates the scale of a widget.
99
+
/// For GFAnimationType.slideTransition, which animates the position of a widget.
100
100
finalAnimation<Offset> slidePosition;
101
101
102
-
/// defines the [TextStyle] of [AnimatedDefaultTextStyle]
102
+
/// Defines the [TextStyle] of [AnimatedDefaultTextStyle]
103
103
finalTextStyle style;
104
104
105
-
/// defines the [TextAlign] of [AnimatedDefaultTextStyle]
105
+
/// Defines the [TextAlign] of [AnimatedDefaultTextStyle]
106
106
finalTextAlign textAlign;
107
107
108
-
/// defines the [TextOverflow] of [AnimatedDefaultTextStyle]
108
+
/// Defines the [TextOverflow] of [AnimatedDefaultTextStyle]
109
109
finalTextOverflow textOverflow;
110
110
111
-
/// defines the [maxLines] of [AnimatedDefaultTextStyle]
111
+
/// Defines the [maxLines] of [AnimatedDefaultTextStyle]
112
112
finalint maxLines;
113
113
114
-
/// defines the [TextWidthBasis] of [AnimatedDefaultTextStyle]
114
+
/// Defines the [TextWidthBasis] of [AnimatedDefaultTextStyle]
115
115
finalTextWidthBasis textWidthBasis;
116
116
117
-
/// defines the [fontSize] of [AnimatedDefaultTextStyle]
117
+
/// Defines the [fontSize] of [AnimatedDefaultTextStyle]
118
118
finaldouble fontSize;
119
119
120
-
/// defines the [fontWeight] of [AnimatedDefaultTextStyle]
120
+
/// Defines the [fontWeight] of [AnimatedDefaultTextStyle]
0 commit comments