CaptureGestures class

All touches in the child will be captured and ignored.

This is different from IgnorePointer and AbsorbPointer.

Inheritance

Constructors

CaptureGestures.all({Key? key, Widget? child, bool capturingTap = true, bool capturingDoubleTap = true, bool capturingLongPress = true, bool capturingVerticalDrag = true, bool capturingHorizontalDrag = true, bool capturingForcePress = true, bool display = false})
Captures all gestures.
const
CaptureGestures.only({Key? key, Widget? child, bool capturingTap = false, bool capturingDoubleTap = false, bool capturingLongPress = false, bool capturingVerticalDrag = false, bool capturingHorizontalDrag = false, bool capturingForcePress = false, bool display = false})
Captures only the specified gestures.
const
CaptureGestures.scroll({Key? key, Widget? child, bool capturing = true, bool display = false})
Captures only drag gestures (preventing both vertical and horizontal scroll).
const
CaptureGestures.tap({Key? key, Widget? child, bool capturing = true, bool display = false})
Captures only single taps.
const

Properties

capturingDoubleTap bool
Turns on/off the capturing of double-tap gestures.
final
capturingForcePress bool
Turns on/off the capturing of force-press gestures.
final
capturingHorizontalDrag bool
Turns on/off the capturing of horizontal-drag gestures.
final
capturingLongPress bool
Turns on/off the capturing of long-press gestures.
final
capturingTap bool
Turns on/off the capturing of tap gestures.
final
capturingVerticalDrag bool
Turns on/off the capturing of vertical-drag gestures.
final
child Widget?
final
display bool
If true, prints the captured events to the console (for debug reasons only). The default is false.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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