ZdsBottomSheet class

Use showZdsBottomSheet to display any bottom sheets instead of using this widget directly.

Defines the contents to be shown in a bottom sheet.

See also:

  • showZdsBottomSheet, which uses this widget for its contents and is the recommended way to show bottom sheets
Inheritance
Available Extensions

Constructors

ZdsBottomSheet({required Widget child, Key? key, PreferredSizeWidget? header, PreferredSizeWidget? bottom, Color? backgroundColor, double? maxHeight, double? bottomInset})
Defines the contents of the bottom sheet. It's recommended to not use this widget directly and instead call showZdsBottomSheet
const

Properties

backgroundColor Color?
The background color for this bottom sheet.
final
bottom PreferredSizeWidget?
The widget that will be shown at the bottom of this bottom sheet. Typically a ZdsBottomBar
final
bottomInset double?
How much of the bottom part of the display will be avoided when showing this ZdsBottomSheet.
final
child Widget
The widget that contains the main content of this bottom sheet. If header and bottom are not null, it will be shown between those two widgets
final
hashCode int
The hash code for this object.
no setterinherited
The widget that will be shown at the top of this bottom sheet. Typically a ZdsSheetHeader
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxHeight double?
How high this bottom sheet will be allowed to grow. If not null, it must be greater than 0. The bottom sheet will not grow beyond the screen height excluding the top viewPadding even if a greater maxHeight value is declared.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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.
override
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