SlidingSheetDialog constructor

const SlidingSheetDialog({
  1. SheetBuilder? builder,
  2. CustomSheetBuilder? customBuilder,
  3. SheetBuilder? headerBuilder,
  4. SheetBuilder? footerBuilder,
  5. SnapSpec snapSpec = const SnapSpec(),
  6. Duration duration = const Duration(milliseconds: 800),
  7. Color? color,
  8. Color backdropColor = Colors.black54,
  9. Color? shadowColor,
  10. double elevation = 0.0,
  11. EdgeInsets? padding,
  12. bool avoidStatusBar = false,
  13. EdgeInsets? margin,
  14. Border? border,
  15. double cornerRadius = 0.0,
  16. double? cornerRadiusOnFullscreen,
  17. bool dismissOnBackdropTap = true,
  18. SheetListener? listener,
  19. SheetController? controller,
  20. ScrollSpec scrollSpec = const ScrollSpec(overscroll: false),
  21. double maxWidth = double.infinity,
  22. double? minHeight,
  23. bool isDismissable = true,
  24. OnDismissPreventedCallback? onDismissPrevented,
  25. bool isBackdropInteractable = false,
  26. double axisAlignment = 0.0,
  27. bool extendBody = false,
  28. double liftOnScrollHeaderElevation = 0.0,
  29. double liftOnScrollFooterElevation = 0.0,
})

Creates a wrapper class to show a SlidingSheet as a bottom sheet dialog.

Implementation

const SlidingSheetDialog({
  this.builder,
  this.customBuilder,
  this.headerBuilder,
  this.footerBuilder,
  this.snapSpec = const SnapSpec(),
  this.duration = const Duration(milliseconds: 800),
  this.color,
  this.backdropColor = Colors.black54,
  this.shadowColor,
  this.elevation = 0.0,
  this.padding,
  this.avoidStatusBar = false,
  this.margin,
  this.border,
  this.cornerRadius = 0.0,
  this.cornerRadiusOnFullscreen,
  this.dismissOnBackdropTap = true,
  this.listener,
  this.controller,
  this.scrollSpec = const ScrollSpec(overscroll: false),
  this.maxWidth = double.infinity,
  this.minHeight,
  this.isDismissable = true,
  this.onDismissPrevented,
  this.isBackdropInteractable = false,
  this.axisAlignment = 0.0,
  this.extendBody = false,
  this.liftOnScrollHeaderElevation = 0.0,
  this.liftOnScrollFooterElevation = 0.0,
});