showBottomSheet static method
Implementation
static Future showBottomSheet(
BuildContext context,
Widget widget, {
bool fixContent = false,
bool useRootNavigator = false,
}) {
double height = MediaQuery.of(context).size.height - 100;
return showModalBottomSheet(
context: context,
isScrollControlled: true,
useRootNavigator: useRootNavigator,
backgroundColor: Colors.transparent,
builder: (ctx) => SizedBox(
width: double.infinity,
height: fixContent ? null : height,
child: widget));
}