GTFButton constructor
const
GTFButton({
- Key? key,
- VoidCallback? onPressed,
- String text = "",
- String? icon,
- bool isEnable = true,
- int maxLines = 1,
- double? iconWidth,
- double? iconHeight,
- double iconTextMargin = 4,
- double borderWidth = 0,
- double pressedOpacity = 0.6,
- double radius = 0,
- double lineHeight = 1.4,
- double? fontSize = GTFFont.title,
- FontWeight? fontWeight = GTFFont.medium,
- TextAlign textAlign = TextAlign.center,
- GTFButtonIconAlignment iconAlignment = GTFButtonIconAlignment.left,
- EdgeInsets margin = EdgeInsets.zero,
- EdgeInsets padding = EdgeInsets.zero,
- BoxConstraints? constraints,
- BorderRadius? borderRadius,
- Color backgroundColor = GTFColor.transparent,
- Color? disableBackgroundColor,
- Color? textColor,
- Color? disableTextColor,
- Color borderColor = GTFColor.transparent,
- Color? disableBorderColor,
Implementation
const GTFButton({
Key? key,
this.onPressed,
this.text = "",
this.icon,
this.isEnable = true,
this.maxLines = 1,
this.iconWidth,
this.iconHeight,
this.iconTextMargin = 4,
this.borderWidth = 0,
this.pressedOpacity = 0.6,
this.radius = 0,
this.lineHeight = 1.4,
this.fontSize = GTFFont.title,
this.fontWeight = GTFFont.medium,
this.textAlign = TextAlign.center,
this.iconAlignment = GTFButtonIconAlignment.left,
this.margin = EdgeInsets.zero,
this.padding = EdgeInsets.zero,
this.constraints,
this.borderRadius,
this.backgroundColor = GTFColor.transparent,
this.disableBackgroundColor,
this.textColor,
this.disableTextColor,
this.borderColor = GTFColor.transparent,
this.disableBorderColor,
}) : super(key: key);