noActionDialog function

Future noActionDialog(
  1. {required BuildContext context,
  2. String? title,
  3. 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),
          ),
        ],
      );
    },
  );
}