ProText constructor

const ProText({
  1. Key? key,
  2. String? text,
  3. double? fontSize,
  4. Color? color,
  5. FontWeight? fontWeight,
  6. TextAlign? alignment,
  7. double? lineheight,
  8. int? maxLines,
  9. TextDecoration? decoration,
  10. TextOverflow? overflow,
  11. TextDirection? textDirection,
  12. TextDecorationStyle? textDecorationStyle,
  13. Locale? locale,
  14. Color? backgroundColor,
  15. FontStyle? fontStyle,
  16. String? fontFamily,
  17. double? letterSpacing,
})

You can use this widget for texts. Inside we are using Text widget but ProText wrapped it to make Text widget usage easier.

Implementation

const ProText({
  Key? key,
  this.text,
  this.fontSize,
  this.color,
  this.fontWeight,
  this.alignment,
  this.lineheight,
  this.maxLines,
  this.decoration,
  this.overflow,
  this.textDirection,
  this.textDecorationStyle,
  this.locale,
  this.backgroundColor,
  this.fontStyle,
  this.fontFamily,
  this.letterSpacing,
}) : super(key: key);