showBottomPage static method
dynamic
showBottomPage(})
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();
});
}