commonDialogs function
dynamic
commonDialogs({
- dynamic titleText,
- dynamic body,
- dynamic bgColor,
- dynamic textColor,
- dynamic radius,
- dynamic confirm,
- dynamic cancel,
- dynamic textCancel,
- dynamic textConfirm,
- dynamic onConfirmClick,
- dynamic confirmButtonColor,
- dynamic dismiss,
Implementation
commonDialogs({
titleText,
body,
bgColor,
textColor,
radius,
confirm,
cancel,
textCancel,
textConfirm,
onConfirmClick,
confirmButtonColor,
dismiss,
}) {
return Get.defaultDialog(
title: titleText ?? "",
middleText: "",
barrierDismissible: dismiss ?? true,
content: body,
confirm: confirm ?? Container(),
cancel: cancel ?? Container(),
onCancel: () {
Get.back();
},
contentPadding: EdgeInsets.symmetric(horizontal: margin_20),
buttonColor: confirmButtonColor ?? Colors.green,
onConfirm: onConfirmClick ?? () {},
radius: radius_8,
);
}