AutoText constructor

const AutoText(
  1. String text, {
  2. Key? key,
  3. TextStyle? style,
  4. TextAlign textAlign = TextAlign.start,
  5. int maxLines = 100,
  6. TextOverflow overflow = TextOverflow.ellipsis,
  7. double? fontSize = 16,
  8. String fontFamily = "Roboto",
  9. FontWeight? fontWeight = FontWeight.normal,
  10. 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});