SlidingSheetDialog class

A wrapper class to show a SlidingSheet as a bottom sheet dialog.

Constructors

SlidingSheetDialog({SheetBuilder? builder, CustomSheetBuilder? customBuilder, SheetBuilder? headerBuilder, SheetBuilder? footerBuilder, SnapSpec snapSpec = const SnapSpec(), Duration duration = const Duration(milliseconds: 800), Color? color, Color backdropColor = Colors.black54, Color? shadowColor, double elevation = 0.0, EdgeInsets? padding, bool avoidStatusBar = false, EdgeInsets? margin, Border? border, double cornerRadius = 0.0, double? cornerRadiusOnFullscreen, bool dismissOnBackdropTap = true, SheetListener? listener, SheetController? controller, ScrollSpec scrollSpec = const ScrollSpec(overscroll: false), double maxWidth = double.infinity, double? minHeight, bool isDismissable = true, OnDismissPreventedCallback? onDismissPrevented, bool isBackdropInteractable = false, double axisAlignment = 0.0, bool extendBody = false, double liftOnScrollHeaderElevation = 0.0, double liftOnScrollFooterElevation = 0.0})
Creates a wrapper class to show a SlidingSheet as a bottom sheet dialog.
const

Properties

avoidStatusBar bool
If true, adds the top padding returned by MediaQuery.of(context).viewPadding.top to the padding when taking up the full screen.
final
axisAlignment double
final
backdropColor Color
The color of the shadow that is displayed behind the sheet.
final
border Border?
A border that will be drawn around the sheet.
final
builder SheetBuilder?
The builder for the main content of the sheet that will be scrolled if the content is bigger than the height that the sheet can expand to.
final
color Color?
The background color of the sheet.
final
controller SheetController?
A controller to control the state of the sheet.
final
cornerRadius double
The radius of the top corners of this sheet.
final
cornerRadiusOnFullscreen double?
The radius of the top corners of this sheet when expanded to fullscreen.
final
customBuilder CustomSheetBuilder?
Allows you to supply your own custom sroll view. Useful for infinite lists that cannot be shrinkWrapped like long lists.
final
dismissOnBackdropTap bool
If true, the sheet will be dismissed the backdrop was tapped.
final
duration Duration
The base animation duration for the sheet. Swipes and flings may have a different duration.
final
elevation double
The elevation of the sheet.
final
extendBody bool
final
footerBuilder SheetBuilder?
The builder for a footer that will be displayed at the bottom of the sheet that wont be scrolled.
final
hashCode int
The hash code for this object.
no setterinherited
headerBuilder SheetBuilder?
The builder for a header that will be displayed at the top of the sheet that wont be scrolled.
final
isBackdropInteractable bool
If true, the backDrop will also be interactable so any gesture that is applied to the backDrop will be delegated to the sheet itself.
final
isDismissable bool
If false, the SlidingSheetDialog will not be dismissable.
final
liftOnScrollFooterElevation double
final
liftOnScrollHeaderElevation double
final
listener SheetListener?
A callback that will be invoked when the sheet gets dragged or scrolled with current state information.
final
margin EdgeInsets?
The amount of the empty space surrounding the sheet.
final
maxWidth double
The minimum height of the sheet of the child returned by the builder.
final
minHeight double?
final
onDismissPrevented OnDismissPreventedCallback?
A callback that gets invoked when a user tried to dismiss the dialog while isDimissable is set to true.
final
padding EdgeInsets?
The amount to inset the children of the sheet.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollSpec ScrollSpec
The ScrollSpec of the containing ScrollView.
final
shadowColor Color?
The color of the drop shadow of the sheet when elevation is > 0.
final
snapSpec SnapSpec
The SnapSpec that defines how the sheet should snap or if it should at all.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited