InkResponse constructor
- Key? key,
- Widget? child,
- GestureTapCallback? onTap,
- GestureTapDownCallback? onTapDown,
- GestureTapUpCallback? onTapUp,
- GestureTapCallback? onTapCancel,
- GestureTapCallback? onDoubleTap,
- GestureLongPressCallback? onLongPress,
- GestureTapCallback? onSecondaryTap,
- GestureTapUpCallback? onSecondaryTapUp,
- GestureTapDownCallback? onSecondaryTapDown,
- GestureTapCallback? onSecondaryTapCancel,
- ValueChanged<
bool> ? onHighlightChanged, - ValueChanged<
bool> ? onHover, - MouseCursor? mouseCursor,
- bool containedInkWell = false,
- BoxShape highlightShape = BoxShape.circle,
- double? radius,
- BorderRadius? borderRadius,
- ShapeBorder? customBorder,
- Color? focusColor,
- Color? hoverColor,
- Color? highlightColor,
- MaterialStateProperty<
Color?> ? overlayColor, - Color? splashColor,
- InteractiveInkFeatureFactory? splashFactory,
- bool enableFeedback = true,
- bool excludeFromSemantics = false,
- FocusNode? focusNode,
- bool canRequestFocus = true,
- ValueChanged<
bool> ? onFocusChange, - bool autofocus = false,
- MaterialStatesController? statesController,
- Duration? hoverDuration,
Creates an area of a Material that responds to touch.
Must have an ancestor Material widget in which to cause ink reactions.
Implementation
const InkResponse({
super.key,
this.child,
this.onTap,
this.onTapDown,
this.onTapUp,
this.onTapCancel,
this.onDoubleTap,
this.onLongPress,
this.onSecondaryTap,
this.onSecondaryTapUp,
this.onSecondaryTapDown,
this.onSecondaryTapCancel,
this.onHighlightChanged,
this.onHover,
this.mouseCursor,
this.containedInkWell = false,
this.highlightShape = BoxShape.circle,
this.radius,
this.borderRadius,
this.customBorder,
this.focusColor,
this.hoverColor,
this.highlightColor,
this.overlayColor,
this.splashColor,
this.splashFactory,
this.enableFeedback = true,
this.excludeFromSemantics = false,
this.focusNode,
this.canRequestFocus = true,
this.onFocusChange,
this.autofocus = false,
this.statesController,
this.hoverDuration,
});