InkWidget constructor
InkWidget({
- required Widget child,
- Key? key,
- bool disable = false,
- double disableOpacity = _defaultOpacity,
- Color? disableColor,
- Widget? disableWidget,
- ShapeDecoration? shape,
- ShapeBorder? shapeBorder,
- InkWell? inkWellWidget,
- GestureTapCallback? onTap,
- GestureTapCallback? onDoubleTap,
- GestureLongPressCallback? onLongPress,
- GestureTapDownCallback? onTapDown,
- GestureTapCancelCallback? onTapCancel,
- ValueChanged<
bool> ? onHighlightChanged, - ValueChanged<
bool> ? onHover, - Color? focusColor,
- Color? hoverColor,
- Color? highlightColor,
- 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,
Implementation
InkWidget({
required this.child,
Key? key,
this.disable = false,
this.disableOpacity = _defaultOpacity,
Color? disableColor,
this.disableWidget,
this.shape,
this.shapeBorder,
this.inkWellWidget,
this.onTap,
this.onDoubleTap,
this.onLongPress,
this.onTapDown,
this.onTapCancel,
this.onHighlightChanged,
this.onHover,
this.focusColor,
this.hoverColor,
this.highlightColor,
this.splashColor,
this.splashFactory,
this.radius,
this.borderRadius,
this.customBorder,
this.enableFeedback = true,
this.excludeFromSemantics = false,
this.focusNode,
this.canRequestFocus = true,
this.onFocusChange,
this.autofocus = false,
}) : disableColor =
disableColor ?? Colors.black.withOpacity(_defaultOpacity),
super(key: key);