DraggableBottomSheet class Null safety

Inheritance

Constructors

DraggableBottomSheet({Key? key, required Widget previewWidget, required Widget backgroundWidget, required Widget expandedWidget, required dynamic onDragging(double), double minExtent = 50.0, bool collapsed = true, bool useSafeArea = true, Curve curve = Curves.linear, double expansionExtent = 10.0, bool barrierDismissible = true, double maxExtent = double.infinity, Color barrierColor = Colors.black54, Alignment alignment = Alignment.bottomCenter, Duration duration = const Duration(milliseconds: 0)})
const

Properties

alignment Alignment
Alignment of the sheet. Default Alignment.bottomCenter
final
backgroundWidget Widget
Widget above which draggable sheet will be placed.
final
barrierColor Color
Color of the modal barrier. Default Colors.black54
final
barrierDismissible bool
Whether tapping on the barrier will dismiss the dialog. Default true. If false, draggable bottom sheet will act as persistent sheet
final
collapsed bool
Whether the sheet is collapsed initially. Default true.
final
curve Curve
Sheet expansion animation curve. Default Curves.linear
final
duration Duration
Duration for sheet expansion animation. Default Duration(milliseconds: 0)
final
expandedWidget Widget
Widget to show on expended sheet
final
expansionExtent double
Increment expansionExtent on minExtent to change from previewWidget to expandedWidget
final
hashCode int
The hash code for this object.
@nonVirtualread-onlyinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxExtent double
Maximum extent for sheet expansion
final
minExtent double
Minimum extent for the sheet
final
onDragging → dynamic Function(double)
Callback function when sheet is being dragged pass current extent (position) as an argument
final
previewWidget Widget
Widget to show on collapsed sheet
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
useSafeArea bool
indicate if the dialog should only display in 'safe' areas of the screen. Default true
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() DraggableBottomSheetState
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.
@protectedinherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
@nonVirtualinherited