showInfoDialog static method
Implementation
static void showInfoDialog(
BuildContext context, {
String? message,
Widget? widget,
}) {
showDialog(
context: context,
builder: (context) {
return AlertDialog(
content: (widget != null) ? widget : Text(message!),
actions: [
TextButton(
onPressed: () => Navigator.pop(context),
child: const Text('Ok'),
),
],
);
},
);
}