diff --git a/lib/components/animation/gf_animation.dart b/lib/components/animation/gf_animation.dart index f0849a86..9c6c07ab 100644 --- a/lib/components/animation/gf_animation.dart +++ b/lib/components/animation/gf_animation.dart @@ -38,13 +38,13 @@ class GFAnimation extends StatefulWidget { /// The duration for animation to perform final Duration duration; - /// The duration for animation to perform + /// The duration for reverse animation to perform final Duration reverseDuration; - /// Defines how the animated widget is aligned within the Animation. + /// Defines how the animated widget is aligned during Animation. final Alignment alignment; - /// Defines how the animated widget is aligned(after the onTap) within the Animation. + /// Defines how the animated widget is aligned(after the onTap) during Animation. final Alignment activeAlignment; /// The child of type [Widget] to display animation effect. @@ -53,19 +53,20 @@ class GFAnimation extends StatefulWidget { /// Determines the animation curve. Defaults to [Curves.linear]. final Curve curve; - ///type of [GFAnimation] which takes the type ie, align, size, container, rotateTransition, scaleTransition, slideTransition, and textStyle for the [GFAnimation] + ///type of [GFAnimation] which takes the type ie, align, size, container, + /// rotateTransition, scaleTransition, slideTransition, and textStyle for the [GFAnimation] final GFAnimationType type; /// defines [AnimatedContainer] initial width final double width; - /// defines the width of [AnimatedContainer] upto which it can extend during animation + /// defines the width of [AnimatedContainer] upto which it can expand during animation final double changedWidth; /// defines [AnimatedContainer] initial height final double height; - /// defines the height of [AnimatedContainer] upto which it can extend during animation + /// defines the height of [AnimatedContainer] upto which it can expand during animation final double changedHeight; /// defines the color of [AnimatedContainer] when onTap triggers @@ -83,42 +84,40 @@ class GFAnimation extends StatefulWidget { /// Called when the user taps the [child] final Function onTap; - /// Here's an illustration of the [RotationTransition] widget, with it's [turnsAnimation] - /// animated by a stuckValue set to animate + /// For GFAnimationType.rotateTransition, customized turns animation can be added to [RotationTransition] widget final Animation turnsAnimation; - /// Here's an illustration of the [ScaleTransition] widget, with it's [scaleAnimation] - /// animated by a [CurvedAnimation] set to [Curves.linear] + /// For GFAnimationType.scaleTransition, customized scale animation can be added to [ScaleTransition] widget final Animation scaleAnimation; - /// controls animation + /// Type of [AnimationController], its a controller of an animation. final AnimationController controller; - ///direction of the [AnimatedDefaultTextStyle] TextDirection for [ltr,rtl] + /// Defines direction of the [AnimatedDefaultTextStyle] TextDirection i.e [ltr,rtl] final TextDirection textDirection; - /// [ScaleTransition], which animates the scale of a widget. + /// For GFAnimationType.slideTransition, which animates the position of a widget. final Animation slidePosition; - /// defines the [TextStyle] of [AnimatedDefaultTextStyle] + /// Defines the [TextStyle] of [AnimatedDefaultTextStyle] final TextStyle style; - /// defines the [TextAlign] of [AnimatedDefaultTextStyle] + /// Defines the [TextAlign] of [AnimatedDefaultTextStyle] final TextAlign textAlign; - /// defines the [TextOverflow] of [AnimatedDefaultTextStyle] + /// Defines the [TextOverflow] of [AnimatedDefaultTextStyle] final TextOverflow textOverflow; - /// defines the [maxLines] of [AnimatedDefaultTextStyle] + /// Defines the [maxLines] of [AnimatedDefaultTextStyle] final int maxLines; - /// defines the [TextWidthBasis] of [AnimatedDefaultTextStyle] + /// Defines the [TextWidthBasis] of [AnimatedDefaultTextStyle] final TextWidthBasis textWidthBasis; - /// defines the [fontSize] of [AnimatedDefaultTextStyle] + /// Defines the [fontSize] of [AnimatedDefaultTextStyle] final double fontSize; - /// defines the [fontWeight] of [AnimatedDefaultTextStyle] + /// Defines the [fontWeight] of [AnimatedDefaultTextStyle] final FontWeight fontWeight; @override diff --git a/lib/components/dropdown/gf_dropdown.dart b/lib/components/dropdown/gf_dropdown.dart index 670bf39e..bc56ff3f 100644 --- a/lib/components/dropdown/gf_dropdown.dart +++ b/lib/components/dropdown/gf_dropdown.dart @@ -46,10 +46,10 @@ class GFDropdown extends StatefulWidget { /// The value of the currently selected [DropdownMenuItem]. final T value; - /// the color of the border of the dropdown button + /// Defines the border of dropdown button final BorderSide border; - ///The padding given inside the dropdown + /// Defines the padding given inside the dropdown final EdgeInsets padding; /// A placeholder widget that is displayed by the dropdown button. @@ -90,28 +90,26 @@ class GFDropdown extends StatefulWidget { /// Set the dropdown's inner contents to horizontally fill its parent. final bool isExpanded; - /// The default value is [kMinInteractiveDimension], which is also the minimum - /// height for menu items. - /// - /// If this value is null and there isn't enough vertical room for the menu, + /// Defines the height of the menu items final double itemHeight; /// The color for the button's [Material] when it has the input focus. final Color focusColor; - /// {@macro flutter.widgets.Focus.focusNode} + /// Defines the keyboard focus for this widget. final FocusNode focusNode; - /// {@macro flutter.widgets.Focus.autofocus} + /// On true state it should focus itself if nothing else is already focused. + /// Defaults to false final bool autofocus; - /// The background color of the dropdown. + /// Defines the background color of the dropdown. final Color dropdownColor; - /// The border radius of the dropdown. + /// Defines the border radius of the dropdown. final BorderRadius borderRadius; - /// The background color of the dropdownButton. + /// Defines the background color of the dropdownButton. final dynamic dropdownButtonColor; @override diff --git a/lib/components/dropdown/gf_multiselect.dart b/lib/components/dropdown/gf_multiselect.dart index d60edab3..9ebcf00d 100644 --- a/lib/components/dropdown/gf_multiselect.dart +++ b/lib/components/dropdown/gf_multiselect.dart @@ -164,6 +164,7 @@ class GFMultiSelect extends StatefulWidget { /// defines the background color of the dropdown. Can be given [Color] or [GFColors] final Color dropdownbgColor; + @override _GFMultiSelectState createState() => _GFMultiSelectState(); }