onlyBorderAndLabel static method
dynamic
onlyBorderAndLabel({
- String? label = "Inserisci Label",
- double? widthBTN = 250,
- double? heightBTN,
- dynamic onPressed()?,
- Color? colorBorder = Colors.greenAccent,
- double? widthBorder = 2,
- Color? colorBackGround,
- Color? labelColor = Colors.greenAccent,
- TextAlign? textAlignLabel = TextAlign.center,
- 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,
);
}