Interaction model widgets

Respond to touch events and route users to different views.

Touch interactions

#
AbsorbPointer

A widget that absorbs pointers during hit testing. When absorbing is true, this widget prevents its subtree from receiving pointer events by terminating hit testing...

Dismissible

A widget that can be dismissed by dragging in the indicated direction. Dragging or flinging this widget in the DismissDirection causes the child to slide...

DragTarget

A widget that receives data when a Draggable widget is dropped. When a draggable is dragged on top of a drag target, the drag target...

Draggable

A widget that can be dragged from to a DragTarget. When a draggable widget recognizes the start of a drag gesture, it displays a feedback...

DraggableScrollableSheet

A container for a Scrollable that responds to drag gestures by resizing the scrollable until a limit is reached, and then scrolling.

GestureDetector

A widget that detects gestures. Attempts to recognize gestures that correspond to its non-null callbacks. If this widget has a child, it defers to that...

IgnorePointer

A widget that is invisible during hit testing. When ignoring is true, this widget (and its subtree) is invisible to hit testing. It still consumes...

InteractiveViewer

A widget that enables pan and zoom interactions with its child.

LongPressDraggable

Makes its child draggable starting from long press.

Scrollable

Scrollable implements the interaction model for a scrollable widget, including gesture recognition, but does not have an opinion about how the viewport, which actually displays...

Routing

#
Hero

A widget that marks its child as being a candidate for hero animations.

Navigator

A widget that manages a set of child widgets with a stack discipline. Many apps have a navigator near the top of their widget hierarchy...

更多 widget 请查看 widget 目录