showErrorDialog static method
void
showErrorDialog({
- required BuildContext context,
- required String message,
- required String title,
Implementation
static void showErrorDialog({
required BuildContext context,
required String message,
required String title,
}) {
Dialogs.materialDialog(
msg: message,
title: title,
color: Colors.white,
context: context,
actions: [
SizedBox(width: 50),
IconsOutlineButton(
onPressed: () {
Navigator.of(context).pop();
},
text: 'Ok',
iconData: Icons.cancel_outlined,
textStyle: TextStyle(color: Colors.white),
iconColor: Colors.white,
color: Colors.red,
),
SizedBox(width: 50)
]);
return;
}