ClickArea class

Inheritance
Available extensions

Constructors

ClickArea({Key? key, Widget? child, GestureTapCallback? onTap, GestureTapCallback? onDoubleTap, GestureLongPressCallback? onLongPress, GestureTapDownCallback? onTapDown, GestureTapUpCallback? onTapUp, GestureTapCallback? onTapCancel, ValueChanged<bool>? onHighlightChanged, ValueChanged<bool>? onHover, double? radius, BorderRadius? borderRadius, ShapeBorder? customBorder, bool? enableFeedback = true, bool excludeFromSemantics = false, FocusNode? focusNode, bool canRequestFocus = true, ValueChanged<bool>? onFocusChange, bool autofocus = false, MaterialStatesController? statesController})
const

Properties

autofocus → bool
True if this widget will be selected as the initial focus when no other node in its scope is currently focused.
finalinherited
borderRadius → BorderRadius?
The border radius of the containing rectangle. This is effective only if highlightShape is BoxShape.rectangle.
finalinherited
canRequestFocus → bool
If true, this widget may request the primary focus.
finalinherited
child → Widget?
The widget below this widget in the tree.
finalinherited
containedInkWell → bool
Whether this ink response should be clipped its bounds.
finalinherited
customBorder → ShapeBorder?
The custom clip border.
finalinherited
enableFeedback → bool
Whether detected gestures should provide acoustic and/or haptic feedback.
finalinherited
excludeFromSemantics → bool
Whether to exclude the gestures introduced by this widget from the semantics tree.
finalinherited
focusColor → Color?
The color of the ink response when the parent widget is focused. If this property is null then the focus color of the theme, ThemeData.focusColor, will be used.
finalinherited
focusNode → FocusNode?
An optional focus node to use as the focus node for this widget.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
highlightColor → Color?
The highlight color of the ink response when pressed. If this property is null then the highlight color of the theme, ThemeData.highlightColor, will be used.
finalinherited
highlightShape → BoxShape
The shape (e.g., circle, rectangle) to use for the highlight drawn around this part of the material when pressed, hovered over, or focused.
finalinherited
hoverColor → Color?
The color of the ink response when a pointer is hovering over it. If this property is null then the hover color of the theme, ThemeData.hoverColor, will be used.
finalinherited
hoverDuration → Duration?
The duration of the animation that animates the hover effect.
finalinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mouseCursor → MouseCursor?
The cursor for a mouse pointer when it enters or is hovering over the widget.
finalinherited
onDoubleTap → GestureTapCallback?
Called when the user double taps this part of the material.
finalinherited
onFocusChange → ValueChanged<bool>?
Handler called when the focus changes.
finalinherited
onHighlightChanged → ValueChanged<bool>?
Called when this part of the material either becomes highlighted or stops being highlighted.
finalinherited
onHover → ValueChanged<bool>?
Called when a pointer enters or exits the ink response area.
finalinherited
onLongPress → GestureTapCallback?
Called when the user long-presses on this part of the material.
finalinherited
onLongPressUp → GestureTapCallback?
Called when the user lifts their finger after a long press on the button.
finalinherited
onSecondaryTap → GestureTapCallback?
Called when the user taps this part of the material with a secondary button.
finalinherited
onSecondaryTapCancel → GestureTapCallback?
Called when the user cancels a secondary button tap that was started on this part of the material.
finalinherited
onSecondaryTapDown → GestureTapDownCallback?
Called when the user taps down on this part of the material with a secondary button.
finalinherited
onSecondaryTapUp → GestureTapUpCallback?
Called when the user releases a secondary button tap that was started on this part of the material. onSecondaryTap is called immediately after.
finalinherited
onTap → GestureTapCallback?
Called when the user taps this part of the material.
finalinherited
onTapCancel → GestureTapCallback?
Called when the user cancels a tap that was started on this part of the material.
finalinherited
onTapDown → GestureTapDownCallback?
Called when the user taps down this part of the material.
finalinherited
onTapUp → GestureTapUpCallback?
Called when the user releases a tap that was started on this part of the material. onTap is called immediately after.
finalinherited
overlayColor → WidgetStateProperty<Color?>?
Defines the ink response focus, hover, and splash colors.
finalinherited
radius → double?
The radius of the ink splash.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
splashColor → Color?
The splash color of the ink response. If this property is null then the splash color of the theme, ThemeData.splashColor, will be used.
finalinherited
splashFactory → InteractiveInkFeatureFactory?
Defines the appearance of the splash.
finalinherited
statesController → MaterialStatesController?
Represents the interactive "state" of this widget in terms of a set of WidgetStates, like WidgetState.pressed and WidgetState.focused.
finalinherited

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
inherited
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugCheckContext(BuildContext context) → bool
Asserts that the given context satisfies the prerequisites for this class.
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
getRectCallback(RenderBox referenceBox) → RectCallback?
The rectangle to use for the highlight effect and for clipping the splash effects if containedInkWell is true.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAllPadding(BuildContext context) → dynamic

Available on Widget, provided by the WidgetExtension extension

removePadding(BuildContext context, {bool removeLeft = false, bool removeTop = false, bool removeRight = false, bool removeBottom = false}) → dynamic

Available on Widget, provided by the WidgetExtension extension

showAsDialog(BuildContext context, {bool barrierDismissible = true, Color? barrierColor}) → dynamic

Available on Widget, provided by the WidgetExtension extension

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, int wrapWidth = 65}) → 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