FlexibleBottomSheet<T> constructor
FlexibleBottomSheet<T> ({
- Key? key,
- PopupRoute<
T> ? route, - double minHeight = 0,
- double initHeight = 0.5,
- double maxHeight = 1,
- FlexibleDraggableScrollableWidgetBuilder? builder,
- FlexibleDraggableScrollableHeaderWidgetBuilder? headerBuilder,
- FlexibleDraggableScrollableWidgetBodyBuilder? bodyBuilder,
- bool isCollapsible = false,
- bool isExpand = true,
- AnimationController? animationController,
- List<
double> ? anchors, - double? minHeaderHeight,
- double? maxHeaderHeight,
- Decoration? decoration,
- VoidCallback? onDismiss,
- Color? keyboardBarrierColor,
- Color? bottomSheetColor,
- BorderRadiusGeometry? bottomSheetBorderRadius,
- DraggableScrollableController? draggableScrollableController,
- bool useRootScaffold = true,
Implementation
FlexibleBottomSheet({
super.key,
this.route,
this.minHeight = 0,
this.initHeight = 0.5,
this.maxHeight = 1,
this.builder,
this.headerBuilder,
this.bodyBuilder,
this.isCollapsible = false,
this.isExpand = true,
this.animationController,
this.anchors,
this.minHeaderHeight,
this.maxHeaderHeight,
this.decoration,
this.onDismiss,
this.keyboardBarrierColor,
this.bottomSheetColor,
this.bottomSheetBorderRadius,
this.draggableScrollableController,
this.useRootScaffold = true,
}) : assert(minHeight >= 0 && minHeight <= 1),
assert(maxHeight > 0 && maxHeight <= 1),
assert(maxHeight > minHeight),
assert(!isCollapsible || minHeight == 0),
assert(anchors == null || !anchors.any((anchor) => anchor > maxHeight)),
assert(anchors == null || !anchors.any((anchor) => anchor < minHeight)),
assert(isExpand || maxHeight == initHeight && anchors == null);