SlidingBottomSheet class

Inheritance

Constructors

SlidingBottomSheet({Key? key, required Widget builder(BuildContext, ScrollController), SlidingBottomSheetController? controller, bool isDraggable = true, Color? backgroundColor, Duration? reverseDuration, double backgroundBlur = 0.0, Duration duration = const Duration(milliseconds: 200), Curve curve = Curves.decelerate, VoidCallback? onPanelOpened, VoidCallback? onPanelClosed, double upperBound = 1.0, double lowerBound = 0.0, Curve? reversedCurve, void onPanelSlide(double position)?, BoxConstraints? constraints, bool? resizeToAvoidBottomInset, ScrollController? scrollController, dynamic onSizeChanged(double height)?})
Create a SlidingBottomSheet like a AlertDialog. This widget is similar than sliding_up_panel package.

Properties

backgroundBlur double
Creates an image filter that applies a Gaussian blur.
final
backgroundColor Color
The color to paint behind the builder.
final
builder Widget Function(BuildContext, ScrollController)
Provides a ScrollController to attach to a scrollable object in the panel that links the panel position with the scroll position. Useful for implementing an infinite scroll behavior.
final
constraints BoxConstraints?
final
controller SlidingBottomSheetController?
Creates an animation controller. This controller allows move the panel.
final
curve Curve
Creates a curved animation. The curve to use in the forward and reverse direction.
final
duration Duration
duration is the length of time this animation should last.
final
hashCode int
The hash code for this object.
no setterinherited
isDraggable bool
Allows toggling of the draggability of the SlidingUpPanel. Set this to false to prevent the user from being able to drag the panel up and down. Defaults to true
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lowerBound double
final
onPanelClosed VoidCallback?
If non-null, this callback is called when the panel is fully collapsed.
final
onPanelOpened VoidCallback?
If non-null, this callback is called when the panel is fully opened
final
onPanelSlide → void Function(double position)?
If non-null, this callback is called as the panel slides around with the current position of the panel. The position is a double between 0.0 and 1.0 where 0.0 is fully collapsed and 1.0 is fully open.
final
onSizeChanged → dynamic Function(double height)?
final
resizeToAvoidBottomInset bool?
final
reversedCurve Curve?
final
reverseDuration Duration?
duration is the length of time this animation should last.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController?
final
upperBound double
final

Methods

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