showCustomSheet<T> static method
Future<T?>
showCustomSheet<T>({
- required BuildContext context,
- required Widget builder(),
- Color? backgroundColor,
- BorderRadius? borderRadius,
- EdgeInsetsGeometry? padding,
- double? minHeight,
- double? maxHeight,
- bool showDragIndicator = true,
- Color? dragIndicatorColor,
- bool scrollable = true,
- bool isDismissible = true,
- bool enableDrag = true,
- bool isScrollControlled = true,
- Color? barrierColor,
- double? elevation,
- AnimationController? transitionAnimationController,
Implementation
static Future<T?> showCustomSheet<T>({
required BuildContext context,
required Widget Function(BuildContext) builder,
Color? backgroundColor,
BorderRadius? borderRadius,
EdgeInsetsGeometry? padding,
double? minHeight,
double? maxHeight,
bool showDragIndicator = true,
Color? dragIndicatorColor,
bool scrollable = true,
bool isDismissible = true,
bool enableDrag = true,
bool useRootNavigator = false,
bool isScrollControlled = true,
Color? barrierColor,
double? elevation,
AnimationController? transitionAnimationController,
}) {
return showModalBottomSheet<T>(
context: context,
isDismissible: isDismissible,
enableDrag: enableDrag,
useRootNavigator: useRootNavigator,
isScrollControlled: isScrollControlled,
backgroundColor: Colors.transparent,
barrierColor: barrierColor,
elevation: elevation,
transitionAnimationController: transitionAnimationController,
builder: (context) => AtomicCustomSheetBody(
backgroundColor: backgroundColor,
borderRadius: borderRadius,
padding: padding,
minHeight: minHeight,
maxHeight: maxHeight,
showDragIndicator: showDragIndicator,
dragIndicatorColor: dragIndicatorColor,
scrollable: scrollable,
child: builder(context),
),
);
}