PinnedSheet constructor
const
PinnedSheet({
- Key? key,
- OverlayPosition position = OverlayPosition.bottom,
- required Widget child,
- SheetController? controller,
- List<
SheetStage> stages = const [SheetStage.closed(), SheetStage.expanded()], - SheetStage? initialStage,
- Widget? backdrop,
- BackdropTransform? backdropTransform,
- bool draggable = true,
- bool draggableBackdrop = false,
- bool showDragHandle = true,
- bool expands = true,
- bool contentExpands = false,
- bool contentIntrinsic = true,
- bool modal = false,
- bool barrierDismissible = true,
- Color? barrierColor,
- BorderRadiusGeometry? borderRadius,
- Size? dragHandleSize,
- double? surfaceOpacity,
- double? surfaceBlur,
- BoxConstraints? constraints,
- Duration duration = const Duration(milliseconds: 350),
Creates a pinned sheet.
Implementation
const PinnedSheet({
super.key,
this.position = OverlayPosition.bottom,
required this.child,
this.controller,
this.stages = const [SheetStage.closed(), SheetStage.expanded()],
this.initialStage,
this.backdrop,
this.backdropTransform,
this.draggable = true,
this.draggableBackdrop = false,
this.showDragHandle = true,
this.expands = true,
this.contentExpands = false,
this.contentIntrinsic = true,
this.modal = false,
this.barrierDismissible = true,
this.barrierColor,
this.borderRadius,
this.dragHandleSize,
this.surfaceOpacity,
this.surfaceBlur,
this.constraints,
this.duration = const Duration(milliseconds: 350),
});