SnappingSheet class

Inheritance

Constructors

SnappingSheet({Key? key, SnappingSheetContent? sheetAbove, SnappingSheetContent? sheetBelow, Widget grabbing = const SizedBox(), double grabbingHeight = 0, List<SnappingPosition> snappingPositions = const [SnappingPosition.factor(positionFactor: 0.0, grabbingContentOffset: GrabbingContentOffset.top), SnappingPosition.factor(positionFactor: 0.5), SnappingPosition.factor(positionFactor: 1.0, grabbingContentOffset: GrabbingContentOffset.bottom)], SnappingPosition? initialSnappingPosition, Widget? child, bool lockOverflowDrag = false, SnappingSheetController? controller, dynamic onSheetMoved(SheetPositionData positionData)?, dynamic onSnapCompleted(SheetPositionData positionData, SnappingPosition snappingPosition)?, dynamic onSnapStart(SheetPositionData positionData, SnappingPosition snappingPosition)?})
SnappingSheet.horizontal({Key? key, SnappingSheetContent? sheetRight, SnappingSheetContent? sheetLeft, Widget grabbing = const SizedBox(), double grabbingWidth = 0, List<SnappingPosition> snappingPositions = const [SnappingPosition.factor(positionFactor: 0.0, grabbingContentOffset: GrabbingContentOffset.top), SnappingPosition.factor(positionFactor: 0.5), SnappingPosition.factor(positionFactor: 1.0, grabbingContentOffset: GrabbingContentOffset.bottom)], SnappingPosition? initialSnappingPosition, Widget? child, bool lockOverflowDrag = false, SnappingSheetController? controller, dynamic onSheetMoved(SheetPositionData positionData)?, dynamic onSnapCompleted(SheetPositionData positionData, SnappingPosition snappingPosition)?, dynamic onSnapStart(SheetPositionData positionData, SnappingPosition snappingPosition)?})

Properties

axis Axis
final
child Widget?
The widget under the snapping sheet.
final
controller SnappingSheetController?
The controller for executing commands and reading current status of the SnappingSheet
final
grabbing Widget
The grabbing widget that is used to indicate the the sheet can be dragged up and down.
final
grabbingHeight double
The height of the grabbing widget.
final
hashCode int
The hash code for this object.
no setterinherited
initialSnappingPosition SnappingPosition?
The initial snapping position.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lockOverflowDrag bool
Prevents overflow drag.
final
onSheetMoved → (dynamic Function(SheetPositionData positionData)?)
Callback for when the sheet moves.
final
onSnapCompleted → (dynamic Function(SheetPositionData positionData, SnappingPosition snappingPosition)?)
Callback for when a snapping animation is completed.
final
onSnapStart → (dynamic Function(SheetPositionData positionData, SnappingPosition snappingPosition)?)
This is called when a snapping animation starts.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sheetAbove SnappingSheetContent?
The content for the above part of the sheet.
final
sheetBelow SnappingSheetContent?
The content for the below part of the sheet.
final
snappingPositions List<SnappingPosition>
The snapping positions were the sheet can snap to.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _SnappingSheetState
Creates the mutable state for this widget at a given location in the tree.
override
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