ThemeDraggableSheet class
Configuration settings for a draggable bottom sheet component.
Constructors
-
ThemeDraggableSheet({double initialChildSize = 0.5, double minChildSize = 0.25, double maxChildSize = 1.0, bool expand = false, bool snap = false, List<
double> ? snapSizes, Duration? snapAnimationDuration, bool shouldCloseOnMinExtent = true}) -
Creates an instance of ThemeDraggableSheet with customizable settings.
const
Properties
- expand → bool
-
Whether the sheet should expand to fill the available space.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialChildSize → double
-
The initial size of the child as a fraction of the parent.
final
- maxChildSize → double
-
The maximum size of the child as a fraction of the parent.
final
- minChildSize → double
-
The minimum size of the child as a fraction of the parent.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldCloseOnMinExtent → bool
-
Whether the sheet should close when it reaches the minimum extent.
final
- snap → bool
-
Whether the sheet should snap to certain sizes when dragged.
final
- snapAnimationDuration → Duration?
-
The duration of the snapping animation.
final
-
snapSizes
→ List<
double> ? -
The list of sizes to which the sheet can snap.
final
Methods
-
copyWith(
{double? initialChildSize, double? minChildSize, double? maxChildSize, bool? expand, bool? snap, List< double> ? snapSizes, Duration? snapAnimationDuration, bool? shouldCloseOnMinExtent}) → ThemeDraggableSheet -
Creates a copy of this
ThemeDraggableSheet
object with the given fields replaced with new values. -
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