alertClose static method
dynamic
alertClose(
- BuildContext context, {
- String titleText = "",
- TextStyle? titleStyle,
- Color? titleColor,
- String? labelBTNtext,
- TextStyle? labelBTNstyle,
- Color? labelBTNcolor,
- Decoration? decorationBTN,
- Color? colorBTN,
Implementation
static alertClose(
BuildContext context, {
String titleText = "",
TextStyle? titleStyle,
Color? titleColor,
String? labelBTNtext,
TextStyle? labelBTNstyle,
Color? labelBTNcolor,
Decoration? decorationBTN,
Color? colorBTN,
}) {
return showDialog(
context: context,
builder: (context) {
return XAlertDialog(
heightAlertDialog: null,
titleText: titleText,
styleTitle: titleStyle ?? XStyles.xStyTextForTextBase(titleColor ?? Colors.white),
contentActionsBTNArea: Row(mainAxisAlignment: MainAxisAlignment.end, children: [
XBtnbase(
label: labelBTNtext ?? "CHIUDI",
styleLabel: labelBTNstyle ?? XStyles.xStyTextForSubLabel(labelBTNcolor ?? Colors.greenAccent),
decorationBTN: decorationBTN ?? BoxDecoration(color: colorBTN ?? Colors.transparent),
elevation: 0,
onPressed: () {
Navigator.pop(context);
})
]));
});
}