bottomMaterialDialog method

void bottomMaterialDialog (
  1. {@required BuildContext context,
  2. @required String title,
  3. @required String msg,
  4. List<Widget> actions,
  5. String animations,
  6. ShapeBorder dialogShape: BottomSheetShape,
  7. TextStyle titleStyle: titleStyle,
  8. TextStyle msgStyle,
  9. Color color: bcgColor}
)

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,
          ));
}