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(
            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);
                  })
            ]));
      });
}