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
Copy file name to clipboardExpand all lines: lib/components/animation/gf_animation.dart
+13-28Lines changed: 13 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -34,10 +34,10 @@ class GFAnimation extends StatefulWidget {
34
34
this.reverseDuration,
35
35
}) :super(key: key);
36
36
37
-
/// `The duration for animation to perform`
37
+
/// The duration for animations of the [Decoration].
38
38
finalDuration duration;
39
39
40
-
/// The duration for animation to perform
40
+
/// The duration for animations of the type[Size].
41
41
finalDuration reverseDuration;
42
42
43
43
/// Defines how the animated widget is aligned within the Animation.
@@ -49,7 +49,7 @@ class GFAnimation extends StatefulWidget {
49
49
/// The child of type [Widget] to display animation effect.
50
50
finalWidget child;
51
51
52
-
/// Determines the animation curve. Defaults to [Curves.linear].
52
+
/// Determines the animation curve physics. Defaults to [Curves.linear].
53
53
finalCurve curve;
54
54
55
55
///type of [GFAnimation] which takes the type ie, align, size, container, rotateTransition, scaleTransition, slideTransition, and textStyle for the [GFAnimation]
@@ -58,66 +58,51 @@ class GFAnimation extends StatefulWidget {
58
58
/// [AnimatedContainer] initial width
59
59
finaldouble width;
60
60
61
-
/// defines the width of [AnimatedContainer]upto which it can extend during animation
61
+
/// [AnimatedContainer]changed width
62
62
finaldouble changedWidth;
63
63
64
64
/// [AnimatedContainer] initial height
65
65
finaldouble height;
66
66
67
-
/// defines the height of [AnimatedContainer]upto which it can extend during animation
67
+
/// [AnimatedContainer]changed height
68
68
finaldouble changedHeight;
69
69
70
-
/// defines the color of [AnimatedContainer] when onTap triggers
70
+
/// defines the color of items when onTap triggers
71
71
finalColor activeColor;
72
72
73
-
/// defines the color of [AnimatedContainer]
73
+
/// defines the color of items
74
74
finalColor color;
75
75
76
-
/// defines [child]'s or [AnimatedContainer]padding
76
+
/// The empty space that surrounds the animation. Defines the animation outer [Container.padding]..
77
77
finalEdgeInsetsGeometry padding;
78
78
79
-
/// defines [child]'s or [AnimatedContainer]margin
79
+
/// The empty space that surrounds the animation. Defines the animation outer [Container.margin].
80
80
finalEdgeInsetsGeometry margin;
81
-
82
-
/// Called when the user taps the [child]
83
81
finalFunction onTap;
84
82
85
83
/// Here's an illustration of the [RotationTransition] widget, with it's [turnsAnimation]
86
-
/// animated by a stuckValue set to animate
84
+
/// animated by a [Tween] set to [animate]:
87
85
finalAnimation<double> turnsAnimation;
88
86
89
87
/// Here's an illustration of the [ScaleTransition] widget, with it's [scaleAnimation]
90
-
/// animated by a [CurvedAnimation] set to [Curves.linear]
88
+
/// animated by a [CurvedAnimation] set to [Curves.linear]:
91
89
finalAnimation<double> scaleAnimation;
92
90
93
-
/// controls animation
94
91
finalAnimationController controller;
95
92
96
93
///direction of the [AnimatedDefaultTextStyle] TextDirection for [ltr,rtl]
97
94
finalTextDirection textDirection;
98
95
99
-
/// [ScaleTransition], which animates the scale of a widget.
96
+
/// * [ScaleTransition], which animates the scale of a widget.
100
97
finalAnimation<Offset> slidePosition;
101
-
102
-
/// defines the [TextStyle] of [AnimatedDefaultTextStyle]
103
98
finalTextStyle style;
104
-
105
-
/// defines the [TextAlign] of [AnimatedDefaultTextStyle]
106
99
finalTextAlign textAlign;
107
-
108
-
/// defines the [TextOverflow] of [AnimatedDefaultTextStyle]
109
100
finalTextOverflow textOverflow;
110
101
111
-
/// defines the [maxLines] of [AnimatedDefaultTextStyle]
102
+
/// [AnimatedDefaultTextStyle] maxlines
112
103
finalint maxLines;
113
-
114
-
/// defines the [TextWidthBasis] of [AnimatedDefaultTextStyle]
115
104
finalTextWidthBasis textWidthBasis;
116
-
117
-
/// defines the [fontSize] of [AnimatedDefaultTextStyle]
118
105
finaldouble fontSize;
119
-
120
-
/// defines the [fontWeight] of [AnimatedDefaultTextStyle]
0 commit comments