UFUText constructor
const
UFUText({
- required String text,
- UFUTextSize? textSize = UFUTextSize.heading4,
- UFUFontWeight? fontWeight = UFUFontWeight.regular,
- Color? textColor,
- TextOverflow? overflow,
- TextAlign textAlign = TextAlign.center,
- int? maxLine,
- TextDecoration? textDecoration,
- Color? decorationColor,
- double? letterSpacing,
- double? dynamicFontSize,
- double? height,
- bool isSelectable = false,
- FontStyle fontStyle = FontStyle.normal,
- 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});