UdText constructor

UdText({
  1. String? text,
  2. double? fontSize,
  3. Color? color,
  4. FontWeight? fontWeight,
  5. TextAlign? alignment,
  6. double? lineheight,
  7. int? maxLines,
  8. TextDecoration? decoration,
  9. TextOverflow? overflow,
})

You can use this widget for texts. Inside we are using Text widget but UdText helps you minimizing code.

Implementation

UdText({
  this.text,
  this.fontSize,
  this.color,
  this.fontWeight,
  this.alignment,
  this.lineheight,
  this.maxLines,
  this.decoration,
  this.overflow,
});