show<T> static method
Future<T?>
show<T>(
- BuildContext context, {
- required WidgetBuilder builder,
- bool isScrollControlled = false,
- bool useSafeArea = true,
- bool? showDragHandle,
- bool isDismissible = true,
- bool enableDrag = true,
- Color? backgroundColor,
- ShapeBorder? shape,
- BoxConstraints? constraints,
- RouteSettings? routeSettings,
- XLook look = XLook.standard,
Shows arbitrary modal bottom-sheet content.
Implementation
static Future<T?> show<T>(
BuildContext context, {
required WidgetBuilder builder,
bool isScrollControlled = false,
bool useSafeArea = true,
bool? showDragHandle,
bool isDismissible = true,
bool enableDrag = true,
Color? backgroundColor,
ShapeBorder? shape,
BoxConstraints? constraints,
bool useRootNavigator = false,
RouteSettings? routeSettings,
XLook look = XLook.standard,
}) {
final lookPreset = XBottomSheetLook.resolve(look);
return showModalBottomSheet<T>(
context: context,
builder: builder,
isScrollControlled: isScrollControlled,
useSafeArea: useSafeArea,
showDragHandle: showDragHandle ?? lookPreset.showDragHandle,
isDismissible: isDismissible,
enableDrag: enableDrag,
backgroundColor: backgroundColor ?? lookPreset.backgroundColor,
shape: shape ?? lookPreset.shape,
constraints: constraints,
useRootNavigator: useRootNavigator,
routeSettings: routeSettings,
);
}