BottomSheetStyle class

Style configuration for the bottom sheet variant.

Constructors

BottomSheetStyle({double? maxHeightFraction, double? fixedHeight, Color? backgroundColor, Color? barrierColor, BorderRadius? borderRadius, bool showDragHandle = true, Color? dragHandleColor, double? dragHandleWidth, Duration? animationDuration, Curve? animationCurve})
const

Properties

animationCurve → Curve?
Curve of the open/close animation.
final
animationDuration → Duration?
Duration of the open/close animation.
final
backgroundColor → Color?
Background color of the bottom sheet.
final
barrierColor → Color?
Color of the barrier/scrim behind the bottom sheet.
final
borderRadius → BorderRadius?
Border radius of the bottom sheet. Defaults to top corners with radius 16.
final
dragHandleColor → Color?
Color of the drag handle.
final
dragHandleWidth → double?
Width of the drag handle.
final
fixedHeight → double?
Fixed height in pixels. Overrides maxHeightFraction if set.
final
hashCode → int
The hash code for this object.
no setterinherited
maxHeightFraction → double?
Maximum height as a fraction of screen height (0.0-1.0). Defaults to 0.6.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showDragHandle → bool
Whether to show the drag handle. Defaults to true.
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