DDSBottomSheets constructor
const
DDSBottomSheets({
- Key? key,
- bool? showDragHandle,
- Widget? closeIcon = const Icon(Icons.close),
- bool isScrollControlled = false,
- double initialChildSize = 0.5,
- double minChildSize = 0.25,
- double maxChildSize = 1.0,
- double? scrollControlDisabledMaxHeightRatio,
- Color? backgroundColor,
- bool isDismissible = true,
- RouteSettings? routeSettings,
- bool enableDrag = true,
- double? elevation,
- String? barrierLabel,
- Color? barrierColor,
- ShapeBorder? shape,
- Clip? clipBehavior,
- BoxConstraints? constraints,
- bool? expand,
- required ScrollableWidgetBuilder builder,
- required bool showCloseIcon,
- double? closeIconTopPadding,
- double? closeIconRightPadding,
- double? dragHandleWidth,
- double? dragHandleHeight,
- EdgeInsetsGeometry? dragHandleMargin,
- Color? dragHandleColor,
- double? dragHandleBorderRadius,
- bool useContentBasedSizing = false,
- Future<
bool> onDragClose()?, - 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);