XButton.text constructor
XButton.text({
- required String text,
- double fontSize = 16,
- Color color = Colors.white,
- FontWeight fontWeight = FontWeight.normal,
- TextAlign textAlign = TextAlign.center,
- String? fontFamily,
- TextStyle? textStyle,
- VoidCallback? onPressed,
- VoidCallback? onLongPressed,
- XButtonType? buttonType,
- XButtonShape? buttonShape,
- BorderRadiusGeometry? borderRadius,
- Color? overlayColor,
- Size? minSize,
- EdgeInsetsGeometry? padding,
Implementation
XButton.text(
{required String text,
double fontSize = 16,
Color color = Colors.white,
FontWeight fontWeight = FontWeight.normal,
TextAlign textAlign = TextAlign.center,
String? fontFamily,
TextStyle? textStyle,
this.onPressed,
this.onLongPressed,
this.buttonType,
this.buttonShape,
this.borderRadius,
this.overlayColor,
this.minSize,
this.padding})
: child = Text(text,
style: textStyle ??
TextStyle(
fontSize: fontSize,
fontWeight: fontWeight,
color: color,
fontFamily: fontFamily),
textAlign: textAlign);