alertClose static method

dynamic alertClose(
  1. BuildContext context, {
  2. String titleText = "",
  3. TextStyle? titleStyle,
  4. Color? titleColor,
  5. String? labelBTNtext,
  6. TextStyle? labelBTNstyle,
  7. Color? labelBTNcolor,
  8. Decoration? decorationBTN,
  9. 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(
            height: null,
            title_Text: titleText,
            title_Style: titleStyle ?? XStyles.xStyTextForTextBase(titleColor ?? Colors.white),
            actionsBTNarea_Child: Row(mainAxisAlignment: MainAxisAlignment.end, children: [
              XBtnbase(
                  width: 120,
                  height: 40,
                  label: labelBTNtext ?? "CHIUDI",
                  label_Style: labelBTNstyle ?? XStyles.xStyTextForSubLabel(labelBTNcolor ?? Colors.greenAccent),
                  decoration: decorationBTN ?? BoxDecoration(color: colorBTN ?? Colors.transparent),
                  elevation: 0,
                  onPressed: () {
                    Navigator.pop(context);
                  })
            ]));
      });
}