DesignBottomSheetDetails class

What a DesignBottomSheetRoute's panel paints from.

Annotations

Constructors

DesignBottomSheetDetails({required Animation<double> animation, required Animation<double> size, required List<double> snapSizes, required bool dragging, required ScrollController scrollController, required VoidCallback close})
The panel's details; the route makes them.
const

Properties

animation → Animation<double>
The sheet's presence on the route's spring: 0 gone, 1 open, for the look's own fades. An underdamped token passes 1 before it rests; clamp it before an Opacity. Under Reduce Motion it stays at 1.
final
close → VoidCallback
Closes it through Navigator.maybePop, so a PopScope may refuse: a close button.
final
dragging → bool
Whether a finger is moving it (its own drag, or its content's handed over).
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrollController → ScrollController
Give it to the panel's scroll view: a drag up grows the sheet to its largest size before the content scrolls, and a drag down with the content at its top shrinks the sheet or slides it away.
final
size → Animation<double>
The panel's height as a share of the room it has (the screen less the on-screen keyboard, and the top inset with useSafeArea), live through drags and settles: a look's corner that squares as it reaches the top.
final
snapSizes → List<double>
The sizes it rests at (DesignBottomSheetRoute.snapSizes); empty for a sheet at its content's own height.
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