OpenCustomSheet.scrollableSheet constructor
OpenCustomSheet.scrollableSheet(
- BuildContext context, {
- required Widget body({
- ScrollController? scrollController,
- dynamic onClose(
- dynamic
- bool expand = true,
- double initialChildSize = 0.5,
- double minChildSize = 0.25,
- double maxChildSize = 1.0,
- Color? barrierColor,
- Color? backgroundColor,
- Color? handleColor,
- bool barrierDismissible = true,
- bool enableDrag = true,
- bool showDragHandle = true,
- ShapeBorder? sheetShape,
- EdgeInsetsGeometry? sheetPadding,
Factory for a standard scrollable sheet.
Implementation
factory OpenCustomSheet.scrollableSheet(
BuildContext context, {
required Widget Function({ScrollController? scrollController}) body,
Function(dynamic)? onClose,
bool expand = true,
double initialChildSize = 0.5,
double minChildSize = 0.25,
double maxChildSize = 1.0,
Color? barrierColor,
Color? backgroundColor,
Color? handleColor,
bool barrierDismissible = true,
bool enableDrag = true,
bool showDragHandle = true,
ShapeBorder? sheetShape,
EdgeInsetsGeometry? sheetPadding,
}) {
return OpenCustomSheet._internal(
type: _SheetType.scrollable,
// common
barrierDismissible: barrierDismissible,
barrierColor: barrierColor,
enableDrag: enableDrag,
onClose: onClose,
backgroundColor: backgroundColor,
handleColor: handleColor,
sheetShape: sheetShape,
sheetPadding: sheetPadding,
showDragHandle: showDragHandle,
// sizes
scrollable: true,
expand: expand,
initialChildSize: initialChildSize,
minChildSize: minChildSize,
maxChildSize: maxChildSize,
// body
standardBody: body,
);
}