CustomInkWell constructor
const
CustomInkWell({
- Key? key,
- Widget? child,
- GestureTapCallback? onTap,
- GestureTapDownCallback? onTapDown,
- GestureTapCallback? onTapCancel,
- GestureTapCallback? onDoubleTap,
- GestureLongPressCallback? onLongPress,
- ValueChanged<
bool> ? onHighlightChanged, - ValueChanged<
bool> ? onHover, - MouseCursor? mouseCursor,
- 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,
- Duration? highlightFadeDuration(
- HighlightType type
- double? getRadius(
- RenderBox referenceBox
- Rect? getRect(
- RenderBox referenceBox
Implementation
const CustomInkWell({
Key? key,
Widget? child,
GestureTapCallback? onTap,
GestureTapDownCallback? onTapDown,
GestureTapCallback? onTapCancel,
GestureTapCallback? onDoubleTap,
GestureLongPressCallback? onLongPress,
ValueChanged<bool>? onHighlightChanged,
ValueChanged<bool>? onHover,
MouseCursor? mouseCursor,
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,
Duration? Function(HighlightType type)? highlightFadeDuration, // <<<
double? Function(RenderBox referenceBox)? getRadius, // <<<
Rect? Function(RenderBox referenceBox)? getRect, // <<<
}) : super(
key: key,
child: child,
onTap: onTap,
onTapDown: onTapDown,
onTapCancel: onTapCancel,
onDoubleTap: onDoubleTap,
onLongPress: onLongPress,
onHighlightChanged: onHighlightChanged,
onHover: onHover,
mouseCursor: mouseCursor,
containedInkWell: true,
highlightShape: BoxShape.rectangle,
borderRadius: borderRadius,
customBorder: customBorder,
focusColor: focusColor,
hoverColor: hoverColor,
highlightColor: highlightColor,
overlayColor: overlayColor,
splashColor: splashColor,
splashFactory: splashFactory,
enableFeedback: enableFeedback,
excludeFromSemantics: excludeFromSemantics,
onFocusChange: onFocusChange,
autofocus: autofocus,
focusNode: focusNode,
canRequestFocus: canRequestFocus,
highlightFadeDuration: highlightFadeDuration /* <<< */,
getRadius: getRadius /* <<< */,
getRect: getRect /* <<< */,
);