InkResponse class
A version of the Flutter framework InkResponse that allows to customize highlightFadeDuration and can be of a maintained button type. It also can take a controller which gives more control over the state of an ink response to ancestor widgets.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- InkResponse
Constructors
-
InkResponse({Key? key, Widget? child, GestureTapCallback? onTap, GestureTapDownCallback? onTapDown, GestureTapCallback? onTapCancel, GestureTapCallback? onDoubleTap, GestureLongPressCallback? onLongPress, ValueChanged<
bool> ? onHoverChanged, ValueChanged<bool> ? onFocusChanged, ValueChanged<bool> ? onPressedChanged, bool enabled = true, MouseCursor? mouseCursor, bool splashingEnabled = true, bool contained = false, BoxShape highlightShape = BoxShape.rectangle, double? radius, BorderRadius? borderRadius, ShapeBorder? customBorder, Duration? highlightFadeDuration, MaterialStateProperty<Color?> ? color, InteractiveInkFeatureFactory? splashFactory, bool enableFeedback = true, bool excludeFromSemantics = false, FocusNode? focusNode, bool canRequestFocus = true, bool autofocus = false, ButtonType type = ButtonType.momentary, ButtonController? controller}) -
const
Properties
- autofocus → bool
-
final
- borderRadius → BorderRadius?
-
final
- canRequestFocus → bool
-
final
- child → Widget?
-
final
-
color
→ MaterialStateProperty<
Color?> ? -
final
- contained → bool
-
final
- controller → ButtonController?
-
final
- customBorder → ShapeBorder?
-
final
- enabled → bool
-
final
- enableFeedback → bool
-
final
- excludeFromSemantics → bool
-
final
- focusNode → FocusNode?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- highlightFadeDuration → Duration?
-
final
- highlightShape → BoxShape
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- mouseCursor → MouseCursor?
-
final
- onDoubleTap → GestureTapCallback?
-
final
-
onFocusChanged
→ ValueChanged<
bool> ? -
final
-
onHoverChanged
→ ValueChanged<
bool> ? -
final
- onLongPress → GestureLongPressCallback?
-
final
-
onPressedChanged
→ ValueChanged<
bool> ? -
Called when a ink response changes its state from pressed
to released or vice versa.
final
- onTap → GestureTapCallback?
-
final
- onTapCancel → GestureTapCallback?
-
final
- onTapDown → GestureTapDownCallback?
-
final
- radius → double?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- splashFactory → InteractiveInkFeatureFactory?
-
final
- splashingEnabled → bool
-
Whether taps cause splashes. If false, a press
is expressed by a simple highlight change.
final
- type → ButtonType
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _InkResponseState -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugCheckContext(
BuildContext context) → bool -
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.
override
-
getRectCallback(
RenderBox referenceBox) → RectCallback? -
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