AutoText constructor
const
AutoText(
- String text, {
- Key? key,
- TextStyle? style,
- TextAlign textAlign = TextAlign.start,
- int maxLines = 100,
- TextOverflow overflow = TextOverflow.ellipsis,
- double? fontSize = 16,
- String fontFamily = "Roboto",
- FontWeight? fontWeight = FontWeight.normal,
- Color? textColor,
A widget that displays text with customizable style and alignment.
The AutoText widget allows you to display text with various styling options
such as fontSize, fontFamily, fontWeight, and textColor. It also supports
textAlign, maxLines, and overflow handling.
Implementation
const AutoText(this.text,
{super.key,
this.style,
this.textAlign = TextAlign.start,
this.maxLines = 100,
this.overflow = TextOverflow.ellipsis,
this.fontSize = 16,
this.fontFamily = "Roboto",
this.fontWeight = FontWeight.normal,
this.textColor});