bottomMaterialDialog method
Displays bottom sheet Material dialog above the current contents of the app
Implementation
static void bottomMaterialDialog({
@required BuildContext context,
@required String title,
@required String msg,
List<Widget> actions,
String animations,
ShapeBorder dialogShape = BottomSheetShape,
TextStyle titleStyle = titleStyle,
TextStyle msgStyle,
Color color = bcgColor,
}) {
assert(context != null);
assert(title != null);
assert(msg != null);
showModalBottomSheet(
context: context,
shape: dialogShape,
backgroundColor: color,
builder: (context) => DialogWidget(
title: title,
msg: msg,
actions: actions,
animation: animations,
titleStyle: titleStyle,
msgStyle: msgStyle,
color: color,
));
}