showMaterialWidget method

Widget showMaterialWidget(
  1. BuildContext context
)

showMaterialWidget Show alert design for Android

Implementation

Widget showMaterialWidget(BuildContext context) {
  return AlertDialog(
    title: Text(
      _smartAlertDialog.title,
      textAlign: TextAlign.center,
      style: _smartAlertDialog.getStyle().title,
    ),
    content: SingleChildScrollView(
      child: Text(
        _smartAlertDialog.message,
        textAlign: TextAlign.center,
        style: _smartAlertDialog.getStyle().message,
      ),
    ),
    actions: _smartAlertDialog.isDismissible
        ? materialDismissable(context)
        : materialYesOrNo(context),
  );
}