showBottomPage static method

dynamic showBottomPage(
  1. dynamic context, {
  2. Widget? content,
  3. bool dismissible = false,
  4. double? maxHeight,
})

Implementation

static showBottomPage(
  context, {
  Widget? content,
  bool dismissible = false,
  double? maxHeight,
}) {
  showModalBottomSheet(
      context: context,
      enableDrag: dismissible,
      isDismissible: dismissible,
      isScrollControlled: true,
      useSafeArea: false,
      constraints: BoxConstraints(maxHeight: maxHeight ?? MediaQuery.of(context).size.height * 0.95),
      shape:
          RoundedRectangleBorder(borderRadius: BorderRadius.vertical(top: Radius.circular(DUI.spacing.borderRadius))),
      clipBehavior: Clip.antiAliasWithSaveLayer,
      builder: (context) {
        return content ?? Container();
      });
}