PinnedSheet constructor

const PinnedSheet({
  1. Key? key,
  2. OverlayPosition position = OverlayPosition.bottom,
  3. required Widget child,
  4. SheetController? controller,
  5. List<SheetStage> stages = const [SheetStage.closed(), SheetStage.expanded()],
  6. SheetStage? initialStage,
  7. Widget? backdrop,
  8. BackdropTransform? backdropTransform,
  9. bool draggable = true,
  10. bool draggableBackdrop = false,
  11. bool showDragHandle = true,
  12. bool expands = true,
  13. bool contentExpands = false,
  14. bool contentIntrinsic = true,
  15. bool modal = false,
  16. bool barrierDismissible = true,
  17. Color? barrierColor,
  18. BorderRadiusGeometry? borderRadius,
  19. Size? dragHandleSize,
  20. double? surfaceOpacity,
  21. double? surfaceBlur,
  22. BoxConstraints? constraints,
  23. 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),
});