StacInkWell class

A Stac model representing Flutter's InkWell widget.

A rectangular area of a Material that responds to touch.

StacInkWell(
  onTap: StacAction(type: 'navigate', args: {'path': '/details'}),
  splashColor: StacColor(value: 0xFF00FF00), // Green splash
  child: StacText(data: 'Tap Me'),
  radius: 10.0,
)
{
  "type": "inkWell",
  "onTap": {"type": "navigate", "args": {"path": "/details"}},
  "splashColor": {"value": 4278255360},
  "child": {"type": "text", "data": "Tap Me"},
  "radius": 10.0
}
Inheritance
Available extensions
Annotations
  • @JsonSerializable.new()

Constructors

StacInkWell({StacWidget? child, StacAction? onTap, StacAction? onDoubleTap, StacAction? onLongPress, StacAction? onTapDown, StacAction? onTapUp, StacAction? onTapCancel, StacAction? onSecondaryTap, StacAction? onSecondaryTapUp, StacAction? onSecondaryTapDown, StacAction? onSecondaryTapCancel, StacAction? onHighlightChanged, StacAction? onHover, StacMouseCursor? mouseCursor, StacColor? focusColor, StacColor? hoverColor, StacColor? highlightColor, StacColor? overlayColor, StacColor? splashColor, double? radius, StacBorderRadius? borderRadius, StacShapeBorder? customBorder, bool? enableFeedback, bool? excludeFromSemantics, bool? canRequestFocus, StacAction? onFocusChange, bool? autofocus, StacDuration? hoverDuration})
Creates a StacInkWell with the given properties.
const
StacInkWell.fromJson(Map<String, dynamic> json)
Creates a StacInkWell from a JSON map.
factory

Properties

autofocus → bool?
Whether this widget should focus itself if nothing else is already focused.
final
borderRadius → StacBorderRadius?
The border radius of the containing rectangle.
final
canRequestFocus → bool?
Whether this widget can be focused.
final
child → StacWidget?
The widget below this widget in the tree.
final
customBorder → StacShapeBorder?
The custom border to match the ink response.
final
enableFeedback → bool?
Whether detected gestures should provide acoustic and/or haptic feedback.
final
excludeFromSemantics → bool?
Whether to exclude the gestures introduced by this widget from the semantics tree.
final
focusColor → StacColor?
The color of the ink response when the widget has input focus.
final
hashCode → int
The hash code for this object.
no setterinherited
highlightColor → StacColor?
The highlight color of the ink response when pressed.
final
hoverColor → StacColor?
The color of the ink response when a pointer is hovering over it.
final
hoverDuration → StacDuration?
The duration for the hover state to be considered active.
final
jsonData → Map<String, dynamic>?
Raw JSON data for this widget
finalinherited
mouseCursor → StacMouseCursor?
The cursor for a mouse pointer when it enters or is hovering over the widget.
final
onDoubleTap → StacAction?
Called when the user double taps this part of the material.
final
onFocusChange → StacAction?
Handler for focus state changes.
final
onHighlightChanged → StacAction?
Called when the highlight state of this widget changes.
final
onHover → StacAction?
Called when a pointer enters or exits the ink response area.
final
onLongPress → StacAction?
Called when the user long-presses on this part of the material.
final
onSecondaryTap → StacAction?
Called when the user taps the secondary button on this part of the material.
final
onSecondaryTapCancel → StacAction?
Called when the user cancels a secondary button tap that was previously in contact with this part of the material.
final
onSecondaryTapDown → StacAction?
Called when the user taps down the secondary button on this part of the material.
final
onSecondaryTapUp → StacAction?
Called when the user releases a secondary button tap that was previously in contact with this part of the material.
final
onTap → StacAction?
Called when the user taps this part of the material.
final
onTapCancel → StacAction?
Called when the user cancels a tap that was previously in contact with this part of the material.
final
onTapDown → StacAction?
Called when the user taps down this part of the material.
final
onTapUp → StacAction?
Called when the user releases a tap that was previously in contact with this part of the material.
final
overlayColor → StacColor?
The overlay color of the ink response.
final
radius → double?
The radius of the ink splash.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
splashColor → StacColor?
The splash color of the ink response.
final
type → String
Describes the type of this widget for JSON serialization.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(BuildContext context) → Widget?

Available on StacWidget?, provided by the StacWidgetParser extension

parsePreferredSizeWidget(BuildContext context) → PreferredSizeWidget?

Available on StacWidget?, provided by the StacWidgetParser extension

toJson() → Map<String, dynamic>
Converts this StacInkWell instance to a JSON map.
override
toString() → String
A string representation of this object.
inherited

Operators

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