Tappable constructor
const
Tappable({
- Key? key,
- GestureTapCallback? onTap,
- GestureTapCallback? onDoubleTap,
- GestureLongPressCallback? onLongPress,
- GestureTapDownCallback? onTapDown,
- GestureTapUpCallback? onTapUp,
- GestureTapCancelCallback? onTapCancel,
- HitTestBehavior? behavior,
- String? tooltip,
- bool enableAnimation = true,
- bool enableFocusBorder = true,
- bool enableHover = false,
- bool enableHoverOverlay = false,
- Widget builder(
- BuildContext context,
- TappableState state
- Widget? child,
- FocusNode? focusNode,
- EdgeInsets hoverOverlayPadding = EdgeInsets.zero,
- double? hoverOverlayBorderRadius,
- Color? hoverOverlayColorTint,
- ValueChanged<
TappableState> ? onStateChanged,
Implementation
const Tappable({
super.key,
this.onTap,
this.onDoubleTap,
this.onLongPress,
this.onTapDown,
this.onTapUp,
this.onTapCancel,
this.behavior,
this.tooltip,
this.enableAnimation = true,
this.enableFocusBorder = true,
this.enableHover = false,
this.enableHoverOverlay = false,
this.builder,
this.child,
this.focusNode,
this.hoverOverlayPadding = EdgeInsets.zero,
this.hoverOverlayBorderRadius,
this.hoverOverlayColorTint,
this.onStateChanged,
});