DrawerContainerData class
The configuration for a DrawerContainer, provided to descendants via a Data widget. A DrawerContainer reads this and builds the appropriate raw container (drawer or sheet) around its child.
This lets a content builder wrap arbitrary content in a bare
DrawerContainer(child: ...) without threading every visual parameter
through the builder.
Constructors
-
DrawerContainerData({required OverlayPosition position, required Size size, required int stackIndex, bool expands = false, bool draggable = true, bool showDragHandle = true, Size? dragHandleSize, BorderRadiusGeometry? borderRadius, EdgeInsets padding = EdgeInsets.zero, EdgeInsets margin = EdgeInsets.zero, double? surfaceOpacity, double? surfaceBlur, Color? barrierColor, double? gapBeforeDragger, double? gapAfterDragger, BoxConstraints? constraints, AlignmentGeometry? alignment, Animation<
double> ? fadeAnimation, Size extraSize = Size.zero, double overscroll = 0}) -
Creates a drawer container configuration.
const
Properties
- alignment → AlignmentGeometry?
-
Alignment within constraints.
final
- barrierColor → Color?
-
Barrier color.
final
- borderRadius → BorderRadiusGeometry?
-
Corner radius override.
final
- constraints → BoxConstraints?
-
Size constraints.
final
- draggable → bool
-
Whether to lay out the draggable content.
final
- dragHandleSize → Size?
-
Explicit drag handle size.
final
- expands → bool
-
Whether the container expands along the cross axis.
final
- extraSize → Size
-
Extra freed space consumed on the outer edge.
final
-
fadeAnimation
→ Animation<
double> ? -
Fade animation driving the ModalBackdrop.
final
- gapAfterDragger → double?
-
Gap after the drag handle.
final
- gapBeforeDragger → double?
-
Gap before the drag handle.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- margin → EdgeInsets
-
Outer margin.
final
- overscroll → double
-
Live overscroll in logical pixels.
final
- padding → EdgeInsets
-
Inner content padding.
final
- position → OverlayPosition
-
The resolved position.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showDragHandle → bool
-
Whether to show the drag handle.
final
- size → Size
-
The measured content size.
final
- stackIndex → int
-
The stack index (0 = top-most).
final
- surfaceBlur → double?
-
Surface blur.
final
- surfaceOpacity → double?
-
Surface opacity.
final
Methods
-
buildDrawer(
Widget child, {double startPadding = 0, double endPadding = 0, AxisSize? crossAxisSize, double crossAxisAlignment = 0}) → Widget -
Builds a DrawerRawContainer around
childusing this configuration. -
buildSheet(
Widget child, {double startPadding = 0, double endPadding = 0, AxisSize? crossAxisSize, double crossAxisAlignment = 0}) → Widget -
Builds a SheetRawContainer around
childusing this configuration. -
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