openMaterialBottomSheet function

Future openMaterialBottomSheet(
  1. BuildContext context,
  2. Widget content,
  3. BottomSheetProps props
)

Implementation

Future openMaterialBottomSheet(
    BuildContext context, Widget content, BottomSheetProps props) {
  return showBottomSheet(
    context: context,
    showDragHandle: props.showDragHandle,
    sheetAnimationStyle: props.sheetAnimationStyle,
    enableDrag: props.enableDrag,
    backgroundColor: props.backgroundColor,
    clipBehavior: props.clipBehavior,
    elevation: props.elevation,
    shape: props.shape,
    transitionAnimationController: props.transitionAnimationController,
    constraints: props.constraints,
    builder: (ctx) => content,
  ).closed;
}