commonDialogs static method
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
static 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 ?? CommonColors.green,
onConfirm: onConfirmClick ?? () {},
radius: radius_8,
);
}