showInfoDialog static method
dynamic
showInfoDialog({
- required BuildContext context,
- String? title,
- dynamic tap()?,
- String? desc,
- String? btn,
Implementation
static showInfoDialog(
{required BuildContext context,
String? title,
Function()? tap,
String? desc,
String? btn}) async {
await dialog(
context: context,
child: Column(
children: [
const SizedBox(
height: 10,
),
Text(desc ?? ''),
const SizedBox(
height: 10,
),
CupertinoButton.filled(
child: Text(btn ?? 'OK'),
onPressed: () {
Navigator.pop(context);
tap?.call();
}),
const SizedBox(
height: 10,
),
],
),
title: title);
}