UFUText constructor

const UFUText({
  1. required String text,
  2. UFUTextSize? textSize = UFUTextSize.heading4,
  3. UFUFontWeight? fontWeight = UFUFontWeight.regular,
  4. Color? textColor,
  5. TextOverflow? overflow,
  6. TextAlign textAlign = TextAlign.center,
  7. int? maxLine,
  8. TextDecoration? textDecoration,
  9. Color? decorationColor,
  10. double? letterSpacing,
  11. double? dynamicFontSize,
  12. double? height,
  13. bool isSelectable = false,
  14. FontStyle fontStyle = FontStyle.normal,
  15. Key? key,
})

Implementation

const UFUText({
  required this.text,
  this.textSize = UFUTextSize.heading4,
  // this.fontFamily = UFUFontFamily.productSans,
  this.fontWeight = UFUFontWeight.regular,
  this.textColor,
  this.overflow,
  this.textAlign = TextAlign.center,
  this.maxLine,
  this.textDecoration,
  this.decorationColor,
  this.letterSpacing,
  this.dynamicFontSize,
  this.height,
  this.isSelectable = false,
  this.fontStyle = FontStyle.normal,
  super.key});