showBottomSheet<T> method

Future<T?> showBottomSheet<T>({
  1. required WidgetBuilder builder,
  2. Color? backgroundColor,
  3. double? elevation,
  4. ShapeBorder? shape,
  5. Clip? clipBehavior,
  6. BoxConstraints? constraints,
  7. Color? barrierColor,
  8. bool isScrollControlled = false,
  9. bool useRootNavigator = false,
  10. bool isDismissible = true,
  11. bool enableDrag = true,
  12. AnimationController? transitionAnimationController,
})

Shows a modal bottom sheet bound to this BuildContext's theme.

Implementation

Future<T?> showBottomSheet<T>({
  required WidgetBuilder builder,
  Color? backgroundColor,
  double? elevation,
  ShapeBorder? shape,
  Clip? clipBehavior,
  BoxConstraints? constraints,
  Color? barrierColor,
  bool isScrollControlled = false,
  bool useRootNavigator = false,
  bool isDismissible = true,
  bool enableDrag = true,
  AnimationController? transitionAnimationController,
}) {
  return showModalBottomSheet<T>(
    context: this,
    builder: builder,
    backgroundColor: backgroundColor,
    elevation: elevation,
    shape: shape,
    clipBehavior: clipBehavior,
    constraints: constraints,
    barrierColor: barrierColor,
    isScrollControlled: isScrollControlled,
    useRootNavigator: useRootNavigator,
    isDismissible: isDismissible,
    enableDrag: enableDrag,
    transitionAnimationController: transitionAnimationController,
  );
}