showActionDialog static method
Future<bool?>
showActionDialog(
- BuildContext context, {
- String? title,
- String? subTitle,
- required String yesText,
- Color? yesColor,
- String? cancelText,
- Color? cancelColor,
- String? noText,
- Color? noColor,
- IconData? icon,
- Color? iconColor,
})
Implementation
static Future<bool?> showActionDialog(BuildContext context,
{String? title,
String? subTitle,
required String yesText,
Color? yesColor,
String? cancelText,
Color? cancelColor,
String? noText,
Color? noColor,
IconData? icon,
Color? iconColor}) {
return showCustomDialog<bool?>(
context,
GeneralDialog(
title: title,
subTitle: subTitle,
yesAction: yesText,
yesColor: yesColor,
noAction: noText,
noColor: noColor,
cancelAction: cancelText,
cancelColor: cancelColor,
icon: icon == null
? null
: Icon(
icon,
size: 70,
color: iconColor ?? Theme.of(context).primaryColor,
),
));
}