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
+25-7Lines changed: 25 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,8 @@ class GFAnimation extends StatefulWidget {
29
29
this.textWidthBasis,
30
30
this.fontSize,
31
31
this.fontWeight,
32
+
this.changedWidth,
33
+
this.changedHeight,
32
34
}) :super(key: key);
33
35
34
36
/// The duration for animations of the [Decoration].
@@ -49,9 +51,18 @@ class GFAnimation extends StatefulWidget {
49
51
///type of [GFAnimation] which takes the type ie, align, size, container, rotateTransition, scaleTransition, slideTransition, and textStyle for the [GFAnimation]
50
52
finalGFAnimationType type;
51
53
54
+
/// [AnimatedContainer] initial width
52
55
finaldouble width;
56
+
57
+
/// [AnimatedContainer] changed width
58
+
finaldouble changedWidth;
59
+
60
+
/// [AnimatedContainer] initial height
53
61
finaldouble height;
54
62
63
+
/// [AnimatedContainer] changed height
64
+
finaldouble changedHeight;
65
+
55
66
/// defines the color of items when onTap triggers
56
67
finalColor activeColor;
57
68
@@ -83,6 +94,8 @@ class GFAnimation extends StatefulWidget {
83
94
finalTextStyle style;
84
95
finalTextAlign textAlign;
85
96
finalTextOverflow textOverflow;
97
+
98
+
/// [AnimatedDefaultTextStyle] maxlines
86
99
finalint maxLines;
87
100
finalTextWidthBasis textWidthBasis;
88
101
finaldouble fontSize;
@@ -95,7 +108,6 @@ class GFAnimation extends StatefulWidget {
95
108
class_GFAnimationStateextendsState<GFAnimation>
96
109
withSingleTickerProviderStateMixin {
97
110
bool selected =false;
98
-
bool expand =false;
99
111
100
112
AnimationController controller;
101
113
Animation<double> animation;
@@ -158,8 +170,10 @@ class _GFAnimationState extends State<GFAnimation>
0 commit comments