HoverButton constructor
HoverButton({
- Key? key,
- required VoidCallback onpressed,
- Duration? animationDuration,
- bool autofocus = false,
- Widget? child,
- Clip clipBehavior = Clip.none,
- Color? color,
- Brightness? colorBrightness,
- Color? disabledColor,
- double? disabledElevation,
- Color? disabledTextColor,
- double elevation = 4.0,
- bool enableFeedback = true,
- Color? focusColor,
- double? focusElevation,
- FocusNode? focusNode,
- double? height,
- Color? highlightColor,
- double? highlightElevation,
- Color? hoverColor,
- double hoverElevation = 8.0,
- MaterialTapTargetSize? materialTapTargetSize,
- double? minWidth,
- MouseCursor mouseCursor = SystemMouseCursors.click,
- ValueChanged<
bool> ? onHighlightChanged, - VoidCallback? onLongPress,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry hoverPadding = const EdgeInsets.all(2.0),
- ShapeBorder shape = const StadiumBorder(),
- Color? splashColor,
- Color? textColor,
- ButtonTextTheme? textTheme,
- VisualDensity? visualDensity,
- ShapeBorder? hoverShape,
- Color? hoverTextColor,
- ButtonTextTheme? hoverTextTheme,
- Brightness? hoverColorBrightness,
Implementation
HoverButton(
{Key? key,
required this.onpressed,
this.animationDuration,
this.autofocus = false,
this.child,
this.clipBehavior = Clip.none,
this.color,
this.colorBrightness,
this.disabledColor,
this.disabledElevation,
this.disabledTextColor,
this.elevation = 4.0,
this.enableFeedback = true,
this.focusColor,
this.focusElevation,
this.focusNode,
this.height,
this.highlightColor,
this.highlightElevation,
this.hoverColor,
this.hoverElevation = 8.0,
this.materialTapTargetSize,
this.minWidth,
this.mouseCursor = SystemMouseCursors.click,
this.onHighlightChanged,
this.onLongPress,
this.padding,
this.hoverPadding = const EdgeInsets.all(2.0),
this.shape = const StadiumBorder(),
this.splashColor,
this.textColor,
this.textTheme,
this.visualDensity,
this.hoverShape,
this.hoverTextColor,
this.hoverTextTheme,
this.hoverColorBrightness})
: super(key: key);