HoverButton constructor

HoverButton({
  1. Key? key,
  2. required VoidCallback onpressed,
  3. Duration? animationDuration,
  4. bool autofocus = false,
  5. Widget? child,
  6. Clip clipBehavior = Clip.none,
  7. Color? color,
  8. Brightness? colorBrightness,
  9. Color? disabledColor,
  10. double? disabledElevation,
  11. Color? disabledTextColor,
  12. double elevation = 4.0,
  13. bool enableFeedback = true,
  14. Color? focusColor,
  15. double? focusElevation,
  16. FocusNode? focusNode,
  17. double? height,
  18. Color? highlightColor,
  19. double? highlightElevation,
  20. Color? hoverColor,
  21. double hoverElevation = 8.0,
  22. MaterialTapTargetSize? materialTapTargetSize,
  23. double? minWidth,
  24. MouseCursor mouseCursor = SystemMouseCursors.click,
  25. ValueChanged<bool>? onHighlightChanged,
  26. VoidCallback? onLongPress,
  27. EdgeInsetsGeometry? padding,
  28. EdgeInsetsGeometry hoverPadding = const EdgeInsets.all(2.0),
  29. ShapeBorder shape = const StadiumBorder(),
  30. Color? splashColor,
  31. Color? textColor,
  32. ButtonTextTheme? textTheme,
  33. VisualDensity? visualDensity,
  34. ShapeBorder? hoverShape,
  35. Color? hoverTextColor,
  36. ButtonTextTheme? hoverTextTheme,
  37. 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);