FlutterWebButton class
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.