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
+28-13Lines changed: 28 additions & 13 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 animations of the [Decoration].
37
+
/// `The duration for animation to perform`
38
38
finalDuration duration;
39
39
40
-
/// The duration for animations of the type[Size].
40
+
/// The duration for animation to perform
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 physics. Defaults to [Curves.linear].
52
+
/// Determines the animation curve. 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,51 +58,66 @@ class GFAnimation extends StatefulWidget {
58
58
/// [AnimatedContainer] initial width
59
59
finaldouble width;
60
60
61
-
/// [AnimatedContainer]changed width
61
+
/// defines the width of [AnimatedContainer]upto which it can extend during animation
62
62
finaldouble changedWidth;
63
63
64
64
/// [AnimatedContainer] initial height
65
65
finaldouble height;
66
66
67
-
/// [AnimatedContainer]changed height
67
+
/// defines the height of [AnimatedContainer]upto which it can extend during animation
68
68
finaldouble changedHeight;
69
69
70
-
/// defines the color of items when onTap triggers
70
+
/// defines the color of [AnimatedContainer] when onTap triggers
71
71
finalColor activeColor;
72
72
73
-
/// defines the color of items
73
+
/// defines the color of [AnimatedContainer]
74
74
finalColor color;
75
75
76
-
/// The empty space that surrounds the animation. Defines the animation outer [Container.padding]..
76
+
/// defines [child]'s or [AnimatedContainer] padding
77
77
finalEdgeInsetsGeometry padding;
78
78
79
-
/// The empty space that surrounds the animation. Defines the animation outer [Container.margin].
79
+
/// defines [child]'s or [AnimatedContainer] margin
80
80
finalEdgeInsetsGeometry margin;
81
+
82
+
/// Called when the user taps the [child]
81
83
finalFunction onTap;
82
84
83
85
/// Here's an illustration of the [RotationTransition] widget, with it's [turnsAnimation]
84
-
/// animated by a [Tween] set to [animate]:
86
+
/// animated by a stuckValue set to animate
85
87
finalAnimation<double> turnsAnimation;
86
88
87
89
/// Here's an illustration of the [ScaleTransition] widget, with it's [scaleAnimation]
88
-
/// animated by a [CurvedAnimation] set to [Curves.linear]:
90
+
/// animated by a [CurvedAnimation] set to [Curves.linear]
89
91
finalAnimation<double> scaleAnimation;
90
92
93
+
/// controls animation
91
94
finalAnimationController controller;
92
95
93
96
///direction of the [AnimatedDefaultTextStyle] TextDirection for [ltr,rtl]
94
97
finalTextDirection textDirection;
95
98
96
-
/// * [ScaleTransition], which animates the scale of a widget.
99
+
/// [ScaleTransition], which animates the scale of a widget.
97
100
finalAnimation<Offset> slidePosition;
101
+
102
+
/// defines the [TextStyle] of [AnimatedDefaultTextStyle]
98
103
finalTextStyle style;
104
+
105
+
/// defines the [TextAlign] of [AnimatedDefaultTextStyle]
99
106
finalTextAlign textAlign;
107
+
108
+
/// defines the [TextOverflow] of [AnimatedDefaultTextStyle]
100
109
finalTextOverflow textOverflow;
101
110
102
-
/// [AnimatedDefaultTextStyle] maxlines
111
+
/// defines the [maxLines] of [AnimatedDefaultTextStyle]
103
112
finalint maxLines;
113
+
114
+
/// defines the [TextWidthBasis] of [AnimatedDefaultTextStyle]
104
115
finalTextWidthBasis textWidthBasis;
116
+
117
+
/// defines the [fontSize] of [AnimatedDefaultTextStyle]
105
118
finaldouble fontSize;
119
+
120
+
/// defines the [fontWeight] of [AnimatedDefaultTextStyle]
0 commit comments