DDSBottomSheets constructor

const DDSBottomSheets({
  1. Key? key,
  2. bool? showDragHandle,
  3. Widget? closeIcon = const Icon(Icons.close),
  4. bool isScrollControlled = false,
  5. double initialChildSize = 0.5,
  6. double minChildSize = 0.25,
  7. double maxChildSize = 1.0,
  8. double? scrollControlDisabledMaxHeightRatio,
  9. Color? backgroundColor,
  10. bool isDismissible = true,
  11. RouteSettings? routeSettings,
  12. bool enableDrag = true,
  13. bool useRootNavigator = false,
  14. double? elevation,
  15. String? barrierLabel,
  16. Color? barrierColor,
  17. ShapeBorder? shape,
  18. Clip? clipBehavior,
  19. BoxConstraints? constraints,
  20. bool? expand,
  21. required ScrollableWidgetBuilder builder,
  22. required bool showCloseIcon,
  23. double? closeIconTopPadding,
  24. double? closeIconRightPadding,
  25. double? dragHandleWidth,
  26. double? dragHandleHeight,
  27. EdgeInsetsGeometry? dragHandleMargin,
  28. Color? dragHandleColor,
  29. double? dragHandleBorderRadius,
  30. bool useContentBasedSizing = false,
  31. Future<bool> onDragClose()?,
  32. Future<bool> onCloseIconPressed()?,
})

Implementation

const DDSBottomSheets({
  Key? key,
  this.showDragHandle,
  this.closeIcon = const Icon(Icons.close),
  this.isScrollControlled = false,
  this.initialChildSize = 0.5,
  this.minChildSize = 0.25,
  this.maxChildSize = 1.0,
  this.scrollControlDisabledMaxHeightRatio,
  this.backgroundColor,
  this.isDismissible = true,
  this.routeSettings,
  this.enableDrag = true,
  this.useRootNavigator = false,
  this.elevation,
  this.barrierLabel,
  this.barrierColor,
  this.shape,
  this.clipBehavior,
  this.constraints,
  this.expand,
  required this.builder,
  required this.showCloseIcon,
  this.closeIconTopPadding,
  this.closeIconRightPadding,
  this.dragHandleWidth,
  this.dragHandleHeight,
  this.dragHandleMargin,
  this.dragHandleColor,
  this.dragHandleBorderRadius,
  this.useContentBasedSizing = false,
  this.onDragClose,
  this.onCloseIconPressed,
}) : super(key: key);