showAlertDialogMessage method
dynamic
showAlertDialogMessage({
- String? title,
- String content = "",
- double maxHeight = 150,
- String textCancel = "Huỷ",
- String textDone = "Đồng ý",
- VoidCallback? onDoneClick,
- VoidCallback? onCancelClick,
Implementation
showAlertDialogMessage(
{String? title,
String content = "",
double maxHeight = 150,
String textCancel = "Huỷ",
String textDone = "Đồng ý",
VoidCallback? onDoneClick,
VoidCallback? onCancelClick}) {
showDialog(
context: context,
// barrierDismissible: false,
builder: (BuildContext context) => Dialog(
elevation: 0,
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(24)),
),
backgroundColor: Colors.transparent,
child: DialogView(
content: content,
maxHeight: maxHeight,
onDoneClick: onDoneClick,
onCancelClick: onCancelClick,
title: title,
)));
}