InkWidget class

Wrapper for InkWell Solves the problem when Material effects overlap with a child’s decoration

Inheritance

Constructors

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})

Properties

autofocus bool
final
borderRadius BorderRadius?
final
canRequestFocus bool
final
child Widget
final
customBorder ShapeBorder?
final
disable bool
true - disable the widget false enable the widget
final
disableColor Color
color for disabled state
final
disableOpacity double
opacity for disabled state
final
disableWidget Widget?
custom disable widget
final
enableFeedback bool
final
excludeFromSemantics bool
final
focusColor Color?
final
focusNode FocusNode?
final
hashCode int
The hash code for this object.
no setterinherited
highlightColor Color?
final
hoverColor Color?
final
inkWellWidget InkWell?
custom InlWell Widget
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onDoubleTap GestureTapCallback?
final
onFocusChange ValueChanged<bool>?
final
onHighlightChanged ValueChanged<bool>?
final
onHover ValueChanged<bool>?
final
onLongPress GestureLongPressCallback?
final
onTap GestureTapCallback?
Parameters from InkWell
final
onTapCancel GestureTapCancelCallback?
final
onTapDown GestureTapDownCallback?
final
radius double?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape ShapeDecoration?
shape for InkWell and disable widget
final
shapeBorder ShapeBorder?
shape border for InkWell and disable widget
final
splashColor Color?
final
splashFactory InteractiveInkFeatureFactory?
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited