ShadButton.ghost constructor
const
ShadButton.ghost({
- Key? key,
- Widget? child,
- Widget? leading,
- Widget? trailing,
- VoidCallback? onPressed,
- ShadButtonSize? size,
- MouseCursor? cursor,
- double? width,
- double? height,
- EdgeInsetsGeometry? padding,
- Color? backgroundColor,
- Color? hoverBackgroundColor,
- Color? foregroundColor,
- Color? hoverForegroundColor,
- bool autofocus = false,
- FocusNode? focusNode,
- Color? pressedBackgroundColor,
- Color? pressedForegroundColor,
- List<
BoxShadow> ? shadows, - Gradient? gradient,
- TextDecoration? textDecoration,
- TextDecoration? hoverTextDecoration,
- ShadDecoration? decoration,
- bool enabled = true,
- VoidCallback? onLongPress,
- ShadStatesController? statesController,
- MainAxisAlignment? mainAxisAlignment,
- CrossAxisAlignment? crossAxisAlignment,
- ShadHoverStrategies? hoverStrategies,
- ValueChanged<
bool> ? onHoverChange, - ValueChanged<
TapDownDetails> ? onTapDown, - ValueChanged<
TapUpDetails> ? onTapUp, - VoidCallback? onTapCancel,
- ValueChanged<
TapDownDetails> ? onSecondaryTapDown, - ValueChanged<
TapUpDetails> ? onSecondaryTapUp, - VoidCallback? onSecondaryTapCancel,
- ValueChanged<
LongPressStartDetails> ? onLongPressStart, - VoidCallback? onLongPressCancel,
- VoidCallback? onLongPressUp,
- ValueChanged<
LongPressDownDetails> ? onLongPressDown, - ValueChanged<
LongPressEndDetails> ? onLongPressEnd, - VoidCallback? onDoubleTap,
- ValueChanged<
TapDownDetails> ? onDoubleTapDown, - VoidCallback? onDoubleTapCancel,
- Duration? longPressDuration,
- TextDirection? textDirection,
- double? gap,
- ValueChanged<
bool> ? onFocusChange, - bool? expands,
- TextStyle? textStyle,
- bool? canRequestFocus,
Creates a ghost variant button widget, typically with minimal styling.
Implementation
const ShadButton.ghost({
super.key,
this.child,
this.leading,
this.trailing,
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.textStyle,
this.canRequestFocus,
}) : variant = ShadButtonVariant.ghost;