ShadButton.link constructor

const ShadButton.link({
  1. Key? key,
  2. required Widget? child,
  3. VoidCallback? onPressed,
  4. ShadButtonSize? size,
  5. MouseCursor? cursor,
  6. double? width,
  7. double? height,
  8. EdgeInsetsGeometry? padding,
  9. Color? backgroundColor,
  10. Color? hoverBackgroundColor,
  11. Color? foregroundColor,
  12. Color? hoverForegroundColor,
  13. bool autofocus = false,
  14. FocusNode? focusNode,
  15. Color? pressedBackgroundColor,
  16. Color? pressedForegroundColor,
  17. List<BoxShadow>? shadows,
  18. Gradient? gradient,
  19. TextDecoration? textDecoration,
  20. TextDecoration? hoverTextDecoration,
  21. ShadDecoration? decoration,
  22. bool enabled = true,
  23. VoidCallback? onLongPress,
  24. ShadStatesController? statesController,
  25. MainAxisAlignment? mainAxisAlignment,
  26. CrossAxisAlignment? crossAxisAlignment,
  27. ShadHoverStrategies? hoverStrategies,
  28. ValueChanged<bool>? onHoverChange,
  29. ValueChanged<TapDownDetails>? onTapDown,
  30. ValueChanged<TapUpDetails>? onTapUp,
  31. VoidCallback? onTapCancel,
  32. ValueChanged<TapDownDetails>? onSecondaryTapDown,
  33. ValueChanged<TapUpDetails>? onSecondaryTapUp,
  34. VoidCallback? onSecondaryTapCancel,
  35. ValueChanged<LongPressStartDetails>? onLongPressStart,
  36. VoidCallback? onLongPressCancel,
  37. VoidCallback? onLongPressUp,
  38. ValueChanged<LongPressDownDetails>? onLongPressDown,
  39. ValueChanged<LongPressEndDetails>? onLongPressEnd,
  40. VoidCallback? onDoubleTap,
  41. ValueChanged<TapDownDetails>? onDoubleTapDown,
  42. VoidCallback? onDoubleTapCancel,
  43. Duration? longPressDuration,
  44. TextDirection? textDirection,
  45. double? gap,
  46. ValueChanged<bool>? onFocusChange,
  47. bool? expands,
  48. Widget? leading,
  49. Widget? trailing,
  50. TextStyle? textStyle,
  51. bool? canRequestFocus,
})

Creates a link variant button widget, styled like a hyperlink.

Implementation

const ShadButton.link({
  super.key,
  required this.child,
  this.onPressed,
  this.size,
  this.cursor,
  this.width,
  this.height,
  this.padding,
  this.backgroundColor,
  this.hoverBackgroundColor,
  this.foregroundColor,
  this.hoverForegroundColor,
  this.autofocus = false,
  this.focusNode,
  this.pressedBackgroundColor,
  this.pressedForegroundColor,
  this.shadows,
  this.gradient,
  this.textDecoration,
  this.hoverTextDecoration,
  this.decoration,
  this.enabled = true,
  this.onLongPress,
  this.statesController,
  this.mainAxisAlignment,
  this.crossAxisAlignment,
  this.hoverStrategies,
  this.onHoverChange,
  this.onTapDown,
  this.onTapUp,
  this.onTapCancel,
  this.onSecondaryTapDown,
  this.onSecondaryTapUp,
  this.onSecondaryTapCancel,
  this.onLongPressStart,
  this.onLongPressCancel,
  this.onLongPressUp,
  this.onLongPressDown,
  this.onLongPressEnd,
  this.onDoubleTap,
  this.onDoubleTapDown,
  this.onDoubleTapCancel,
  this.longPressDuration,
  this.textDirection,
  this.gap,
  this.onFocusChange,
  this.expands,
  this.leading,
  this.trailing,
  this.textStyle,
  this.canRequestFocus,
}) : variant = ShadButtonVariant.link;