ClickArea constructor
const
ClickArea({
- Key? key,
- Widget? child,
- GestureTapCallback? onTap,
- GestureTapCallback? onDoubleTap,
- GestureLongPressCallback? onLongPress,
- GestureTapDownCallback? onTapDown,
- GestureTapUpCallback? onTapUp,
- GestureTapCallback? onTapCancel,
- ValueChanged<
bool> ? onHighlightChanged, - ValueChanged<
bool> ? onHover, - double? radius,
- BorderRadius? borderRadius,
- ShapeBorder? customBorder,
- bool? enableFeedback = true,
- bool excludeFromSemantics = false,
- FocusNode? focusNode,
- bool canRequestFocus = true,
- ValueChanged<
bool> ? onFocusChange, - bool autofocus = false,
- MaterialStatesController? statesController,
Implementation
const ClickArea(
{super.key,
super.child,
super.onTap,
super.onDoubleTap,
super.onLongPress,
super.onTapDown,
super.onTapUp,
super.onTapCancel,
super.onHighlightChanged,
super.onHover,
super.radius,
super.borderRadius,
super.customBorder,
bool? enableFeedback = true,
super.excludeFromSemantics,
super.focusNode,
super.canRequestFocus,
super.onFocusChange,
super.autofocus,
super.statesController})
: super(
focusColor: Colors.transparent,
splashColor: Colors.transparent,
highlightColor: Colors.transparent,
enableFeedback: enableFeedback ?? true,
);