TextCaption function
Widget
TextCaption(
- String texto, {
- double? fontSize,
- Color? color,
- bool shadow = false,
- FontWeight? fontWeight,
- TextAlign textAlign = TextAlign.start,
- int maxlines = MAXLINES,
- TextOverflow textOverflow = TextOverflow.ellipsis,
- double espacioLetras = 0,
- bool isUppercase = false,
Implementation
Widget TextCaption(
String texto, {
double? fontSize,
Color? color,
bool shadow = false,
FontWeight? fontWeight,
TextAlign textAlign = TextAlign.start,
int maxlines = MAXLINES,
TextOverflow textOverflow = TextOverflow.ellipsis,
double espacioLetras = 0,
bool isUppercase = false,
}) {
final Color effectiveColor = color ?? COLOR_SUBTEXT;
return Text(
isUppercase ? texto.toUpperCase() : texto,
overflow: textOverflow,
textAlign: textAlign,
maxLines: maxlines,
style: styleCaption(
size: fontSize,
fontWeight: fontWeight,
color: effectiveColor,
),
);
}