FlutterWebButton class

Inheritance

Constructors

FlutterWebButton.backgroundColorChange(String? text, {Key? key, required VoidCallback? onPressed, required FlutterWebButtonOptions? flutterWebButtonOptions, Color? backgroundAnimatedColor, Color? textAnimatedColor, Duration? animationDuration})
Button Constructors Animates the background color only.
FlutterWebButton.backgroundFill(String? text, {Key? key, required VoidCallback? onPressed, required FlutterWebButtonOptions? flutterWebButtonOptions, Color? textAnimatedColor, Color? backgroundAnimatedColor, Duration? animationDuration})
Animated a background fill from left to right. FlutterWebButtonOptions.buttonRadius does not work for this animation.
FlutterWebButton.buttonHighlightIconFill(String? text, {Key? key, required IconData? icon, required VoidCallback? onPressed, required FlutterTextOptions? flutterTextOptions, Duration? animationDuration, Color? iconColor, Color? backgroundAnimatedColor})
Simple button with grow effect.
FlutterWebButton.grow(String? text, {Key? key, required VoidCallback? onPressed, required FlutterWebButtonOptions? flutterWebButtonOptions, Duration? animationDuration, double? growAmount = 1.05})
Simple button with grow effect.
FlutterWebButton.iconGrow({Key? key, required IconData? icon, required VoidCallback? onPressed, required FlutterWebIconOptions? flutterWebIconOptions, Duration? animationDuration, double? growAmount = 1.05})
Simple icon with grow effect.
FlutterWebButton.raiseText(String? text, {Key? key, required VoidCallback? onPressed, required FlutterWebButtonOptions? flutterWebButtonOptions, Duration? animationDuration, Color? textAnimatedColor, double? moveDistanceX = 0, double? moveDistanceY = -4})
Animation that bumps the text up.
FlutterWebButton.simple(String? text, {Key? key, required VoidCallback? onPressed, required FlutterWebButtonOptions? flutterWebButtonOptions})
The simplest form of a button. No animations.
FlutterWebButton.simpleIcon({Key? key, required IconData? icon, required VoidCallback? onPressed, required FlutterWebIconOptions? flutterWebIconOptions})
Simple icon with no animation.
FlutterWebButton.socialIcon({Key? key, required FlutterWebButtonSocialIcon? flutterWebButtonSocialIcon, required VoidCallback? onPressed, required FlutterWebIconOptions? flutterWebIconOptions, Duration? animationDuration})
Display a simple social icon.
FlutterWebButton.socialIconGrow({Key? key, required FlutterWebButtonSocialIcon? flutterWebButtonSocialIcon, required VoidCallback? onPressed, required FlutterWebIconOptions? flutterWebIconOptions, Duration? animationDuration, double? growAmount = 1.1})
Display a social icon with grow effect
FlutterWebButton.textColorChange(String? text, {Key? key, required VoidCallback? onPressed, required FlutterWebButtonOptions? flutterWebButtonOptions, Color? textAnimatedColor, Duration? animationDuration})
Animates the text color only.
FlutterWebButton.textMove(String? text, {Key? key, required VoidCallback? onPressed, required FlutterTextOptions? flutterTextOptions, Duration? animationDuration, double? moveDistanceX = 0, double? moveDistanceY = 0})
Display text with an animated move in x or y direction.
FlutterWebButton.textOnlyColorChange(String? text, {Key? key, required VoidCallback? onPressed, required FlutterTextOptions? flutterTextOptions, Color? textAnimatedColor, Duration? animationDuration})
Animates the text color only.
FlutterWebButton.textScroll(String? text, {Key? key, required VoidCallback? onPressed, required FlutterWebButtonOptions? flutterWebButtonOptions, Duration? animationDuration})
The text will scroll to the top and fade out and reappear from the bottom back into position.
FlutterWebButton.textUnderline(String? text, {Key? key, required VoidCallback? onPressed, required FlutterTextOptions? flutterTextOptions, Duration? animationDuration, Color? textAnimatedColor, CrossAxisAlignment? animationCrossAxisAlignment, double? lineThickness = 2, double? lineSpacing = 0})
Display text with an animated underline effect.

Properties

animationCrossAxisAlignment CrossAxisAlignment?
Used to align the widget being animated on the cross axis.
getter/setter pair
animationDuration Duration?
Any animated buttons will include the option to change the animation duration.
getter/setter pair
backgroundAnimatedColor Color?
Used to set the background color for the animation.
getter/setter pair
flutterTextOptions FlutterTextOptions?
Using a separate constructor for text only properties that are not required to display the text.
getter/setter pair
flutterWebButtonOptions FlutterWebButtonOptions?
Using a separate constructor for properties that are not required to display the button.
getter/setter pair
flutterWebButtonSocialIcon FlutterWebButtonSocialIcon?
Used to show a list of enums containing built in social icons.
getter/setter pair
flutterWebIconOptions FlutterWebIconOptions?
Using a separate constructor for properties that are not required to display the icon button.
getter/setter pair
growAmount double?
Used to set grow amount
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
icon IconData?
Icon used for custom icon animations.
getter/setter pair
iconColor Color?
Icon color used for custom icon animations.
getter/setter pair
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lineSpacing double?
Used to set the underline spacing between text and line
getter/setter pair
lineThickness double?
Used to set the underline thickness
getter/setter pair
moveDistanceX double?
Used to set distance the animation moves in the x direction.
getter/setter pair
moveDistanceY double?
Used to set distance the animation moves in the x direction.
getter/setter pair
onPressed VoidCallback?
Required callback used on button pressed.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String?
Text displayed on the button.
getter/setter pair
textAnimatedColor Color?
Used to set the text color for the animation.
getter/setter pair

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<FlutterWebButton>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited