onlyBorderAndLabel static method

dynamic onlyBorderAndLabel({
  1. String? label = "Inserisci Label",
  2. double? widthBTN = 250,
  3. double? heightBTN,
  4. dynamic onPressed()?,
  5. Color? colorBorder = Colors.greenAccent,
  6. double? widthBorder = 2,
  7. Color? colorBackGround,
  8. Color? labelColor = Colors.greenAccent,
  9. TextAlign? textAlignLabel = TextAlign.center,
  10. double? borderRadius = 5,
})

Implementation

static onlyBorderAndLabel({
  String? label = "Inserisci Label",
  double? widthBTN = 250,
  double? heightBTN,
  Function()? onPressed,
  Color? colorBorder = Colors.greenAccent,
  double? widthBorder = 2,
  Color? colorBackGround,
  Color? labelColor = Colors.greenAccent,
  TextAlign? textAlignLabel = TextAlign.center,
  double? borderRadius = 5,
}) {
  return XBtnbase(
    elevation: 0,
    width: widthBTN,
    height: heightBTN,
    label_TextAlign: textAlignLabel,
    label: label,
    label_Style: XStyles.xStyTextForLabel(labelColor ?? colorBorder),
    decoration: XDecoration.onlyBorder(
      borderRadius: borderRadius!,
      colorBackGround: colorBackGround ?? Colors.grey[900],
      widthBorder: widthBorder!,
      colorBorder: colorBorder!,
    ),
    onPressed: onPressed,
  );
}