showBottomSheet<T> static method
Future<T?>
showBottomSheet<T>({
- required BuildContext context,
- required BottomSheetConfig config,
- Color? backgroundColor,
- BorderRadius borderRadius = BorderRadius.zero,
- double? elevation,
- ShapeBorder? shape,
- Clip? clipBehavior,
- BoxConstraints? constraints,
- Color? barrierColor,
- bool isDismissible = true,
- RouteSettings? routeSettings,
- AnimationController? transitionAnimationController,
- Offset? anchorPoint,
Implementation
static Future<T?> showBottomSheet<T>({
required BuildContext context,
required BottomSheetConfig config,
Color? backgroundColor,
BorderRadius borderRadius = BorderRadius.zero,
double? elevation,
ShapeBorder? shape,
Clip? clipBehavior,
BoxConstraints? constraints,
Color? barrierColor,
bool useRootNavigator = false,
bool isDismissible = true,
RouteSettings? routeSettings,
AnimationController? transitionAnimationController,
Offset? anchorPoint,
}) {
return showModalBottomSheet<T>(
context: context,
enableDrag: config.enableDrag,
isScrollControlled: config.isScrollControlled,
backgroundColor: backgroundColor ?? context.theme.cardColor,
shape: RoundedRectangleBorder(borderRadius: borderRadius),
elevation: elevation,
clipBehavior: clipBehavior,
constraints: constraints,
isDismissible: isDismissible,
transitionAnimationController: transitionAnimationController,
anchorPoint: anchorPoint,
builder: config.build,
);
}