InkWell constructor
- Key? key,
- Widget? child,
- GestureTapCallback? onTap,
- GestureTapCallback? onDoubleTap,
- GestureLongPressCallback? onLongPress,
- GestureTapDownCallback? onTapDown,
- GestureTapUpCallback? onTapUp,
- GestureTapCallback? onTapCancel,
- GestureTapCallback? onSecondaryTap,
- GestureTapUpCallback? onSecondaryTapUp,
- GestureTapDownCallback? onSecondaryTapDown,
- GestureTapCallback? onSecondaryTapCancel,
- ValueChanged<
bool> ? onHighlightChanged, - ValueChanged<
bool> ? onHover, - MouseCursor? mouseCursor,
- Color? focusColor,
- Color? hoverColor,
- Color? highlightColor,
- MaterialStateProperty<
Color?> ? overlayColor, - Color? splashColor,
- InteractiveInkFeatureFactory? splashFactory,
- 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,
- Duration? hoverDuration,
Creates an ink well.
Must have an ancestor Material widget in which to cause ink reactions.
Implementation
const InkWell({
super.key,
super.child,
super.onTap,
super.onDoubleTap,
super.onLongPress,
super.onTapDown,
super.onTapUp,
super.onTapCancel,
super.onSecondaryTap,
super.onSecondaryTapUp,
super.onSecondaryTapDown,
super.onSecondaryTapCancel,
super.onHighlightChanged,
super.onHover,
super.mouseCursor,
super.focusColor,
super.hoverColor,
super.highlightColor,
super.overlayColor,
super.splashColor,
super.splashFactory,
super.radius,
super.borderRadius,
super.customBorder,
bool? enableFeedback = true,
super.excludeFromSemantics,
super.focusNode,
super.canRequestFocus,
super.onFocusChange,
super.autofocus,
super.statesController,
super.hoverDuration,
}) : super(
containedInkWell: true,
highlightShape: BoxShape.rectangle,
enableFeedback: enableFeedback ?? true,
);