GFBottomSheet class

Inheritance
Available extensions

Constructors

GFBottomSheet({Key? key, required Widget contentBody, Widget? stickyHeader, Widget? stickyFooter, required GFBottomSheetController controller, double minContentHeight = 0, double maxContentHeight = 300, double elevation = 0.0, double stickyFooterHeight = 0.0, double stickyHeaderHeight = 0.0, int animationDuration = 1200, bool enableExpandableContent = false})
Opens sheet from bottom as a popup on current sheets it has different customization options.

Properties

animationDuration int
Defines the drag animation duration of the GFBottomSheet Default value is 300.
final
contentBody Widget
contentBody is the body of GFBottomSheet. User can interact by swiping or tapping the contentBody
final
controller GFBottomSheetController
controller used to control GFBottomSheet behavior like hide/show
final
elevation double
elevation controls shadow below the GFBottomSheet material. Must be greater or equal to 0. Default value is 0.
final
enableExpandableContent bool
enableExpandableContent allows contentBody to expand. Default value 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
maxContentHeight double
maxContentHeight controls the maximum height of the content body. It Must be greater or equal to 0. Default value is 300.
final
minContentHeight double
minContentHeight controls the minimum height of the content body. content body with minContentHeight displays only when enableExpandableContent is false. It Must be greater or equal to 0. Default value is 0.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stickyFooter is the footer of GFBottomSheet. User can interact by swiping or tapping the stickyFooter
final
stickyFooterHeight double
stickyFooterHeight defines the height of GFBottomSheet's stickyFooter.
final
stickyHeader is the header of GFBottomSheet. User can interact by swiping or tapping the stickyHeader
final
stickyHeaderHeight double
stickyHeaderHeight defines the height of GFBottomSheet's stickyHeader.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _GFBottomSheetState
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