FlexibleBottomSheet class Null safety

Flexible and scrollable bottom sheet.

This bottom sheet resizing between min and max size, and when size become max start scrolling content. Reduction size available when content scrolled to 0 offset.

minHeight, maxHeight are limits of bounds this widget. For example:

isCollapsible make possible collapse widget and remove from the screen, but you must be carefully to use it, set it to true only if you show this widget with like showFlexibleBottomSheet() case, because it will be removed by Navigator.pop(). If you set isCollapsible true, minHeight must be 0.

The animationController that controls the bottom sheet's entrance and exit animations. The FlexibleBottomSheet widget will manipulate the position of this animation, it is not just a passive observer.

initHeight - relevant height for init bottom sheet

Inheritance

Constructors

FlexibleBottomSheet({Key? key, double minHeight = 0, double initHeight = 0.5, double maxHeight = 1, FlexibleDraggableScrollableWidgetBuilder? builder, FlexibleDraggableScrollableHeaderWidgetBuilder? headerBuilder, FlexibleDraggableScrollableWidgetBodyBuilder? bodyBuilder, bool isCollapsible = false, bool isExpand = true, AnimationController? animationController, List<double>? anchors, double? minHeaderHeight, double? maxHeaderHeight, Decoration? decoration, VoidCallback? onDismiss})
FlexibleBottomSheet.collapsible({Key? key, double initHeight = 0.5, double maxHeight = 1, FlexibleDraggableScrollableWidgetBuilder? builder, FlexibleDraggableScrollableHeaderWidgetBuilder? headerBuilder, FlexibleDraggableScrollableWidgetBodyBuilder? bodyBuilder, bool isExpand = true, AnimationController? animationController, List<double>? anchors, double? minHeaderHeight, double? maxHeaderHeight, Decoration? decoration})

Properties

anchors List<double>?
final
animationController AnimationController?
final
bodyBuilder FlexibleDraggableScrollableWidgetBodyBuilder?
final
builder FlexibleDraggableScrollableWidgetBuilder?
final
decoration Decoration?
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
headerBuilder FlexibleDraggableScrollableHeaderWidgetBuilder?
final
initHeight double
final
isCollapsible bool
final
isExpand bool
final
key Key?
Controls how one widget replaces another widget in the tree. [...]
final, inherited
maxHeaderHeight double?
final
maxHeight double
final
minHeaderHeight double?
final
minHeight double
final
onDismiss VoidCallback?
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
createState() → _FlexibleBottomSheetState
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. [...]
@protected, inherited
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. [...]
@nonVirtual, inherited