FitButton.text constructor
FitButton.text(
- String text, {
- Key? key,
- dynamic onTap()?,
- dynamic onLongPress()?,
- EdgeInsets? margin,
- EdgeInsets? padding,
- double? width,
- double? height,
- Color? color,
Creates a new FitButton with the child set as a FitText.button.
Implementation
FitButton.text(String text, {
super.key,
this.onTap,
this.onLongPress,
this.margin,
this.padding,
this.width,
this.height,
this.color,
}) : child = FitText.button(text);