FitButton.text constructor

FitButton.text(
  1. String text, {
  2. Key? key,
  3. dynamic onTap()?,
  4. dynamic onLongPress()?,
  5. EdgeInsets? margin,
  6. EdgeInsets? padding,
  7. double? width,
  8. double? height,
  9. 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);