noActionDialog function
- {required BuildContext context,
- String? title,
- String? body}
Implementation
Future noActionDialog({
required BuildContext context,
String? title,
String? body,
}) async {
await showDialog(
context: context,
barrierDismissible: false,
builder: (BuildContext context) {
return AlertDialog(
title: Text(title!),
content: Text(body!),
actions: [
TextButton(
onPressed: () {
Navigator.of(context).pop();
},
child: Text(t.generics.understood),
),
],
);
},
);
}