OpenCustomSheet constructor
const
OpenCustomSheet({
- bool barrierDismissible = true,
- Color? barrierColor,
- String? barrierLabel,
- dynamic onClose(
- dynamic
- required Widget body({
- ScrollController? scrollController,
- bool scrollable = false,
- bool expand = true,
- double initialChildSize = 0.5,
- double minChildSize = 0.25,
- double maxChildSize = 1.0,
- Color? backgroundColor,
- Color? handleColor,
- ShapeBorder? sheetShape,
- EdgeInsetsGeometry? sheetPadding,
- Color? firstButtonColor,
- Color? secondButtonColor,
- Color? firstButtonTextColor,
- Color? secondButtonTextColor,
- String? confirmButtonText,
- String? cancelButtonText,
- EdgeInsetsGeometry? padding,
- double? buttonSpacing,
- bool showDefaultButtons = false,
Creates an instance of OpenCustomSheet with the specified properties.
The body
parameter is required and must not be null. Other parameters are optional
and have default values if not specified.
Implementation
const OpenCustomSheet({
this.barrierDismissible = true,
this.barrierColor,
this.barrierLabel,
this.onClose,
required this.body,
this.scrollable = false,
this.expand = true,
this.initialChildSize = 0.5,
this.minChildSize = 0.25,
this.maxChildSize = 1.0,
this.backgroundColor,
this.handleColor,
this.sheetShape,
this.sheetPadding,
this.firstButtonColor,
this.secondButtonColor,
this.firstButtonTextColor,
this.secondButtonTextColor,
this.confirmButtonText,
this.cancelButtonText,
this.padding,
this.buttonSpacing,
this.showDefaultButtons = false, // Changed default to false
});