Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 19 additions & 20 deletions lib/components/animation/gf_animation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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<double> 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<double> 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<Offset> 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
Expand Down
20 changes: 9 additions & 11 deletions lib/components/dropdown/gf_dropdown.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ class GFDropdown<T> 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.
Expand Down Expand Up @@ -90,28 +90,26 @@ class GFDropdown<T> 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
Expand Down
1 change: 1 addition & 0 deletions lib/components/dropdown/gf_multiselect.dart
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ class GFMultiSelect<T> extends StatefulWidget {
/// defines the background color of the dropdown. Can be given [Color] or [GFColors]
final Color dropdownbgColor;


@override
_GFMultiSelectState createState() => _GFMultiSelectState();
}
Expand Down