AppText constructor

const AppText(
  1. String data, {
  2. Key? key,
  3. AppTextStyle style = AppTextStyle.medium,
  4. TextStyle? textStyle,
  5. Color? color,
  6. Color? backgroundColor,
  7. Color? decorationColor,
  8. Gradient? gradient,
  9. double? fontSize,
  10. FontWeight? fontWeight,
  11. String? fontFamily,
  12. FontStyle? fontStyle,
  13. double? letterSpacing,
  14. double? wordSpacing,
  15. double? height,
  16. AppTextDecoration? decoration,
  17. TextDecorationStyle? decorationStyle,
  18. double? decorationThickness,
  19. TextAlign? textAlign,
  20. TextDirection? textDirection,
  21. int? maxLines,
  22. TextOverflow? overflow,
  23. bool? softWrap,
  24. List<Shadow>? shadows,
  25. VoidCallback? onTap,
  26. VoidCallback? onLongPress,
  27. VoidCallback? onDoubleTap,
  28. bool selectable = false,
  29. String? semanticsLabel,
  30. bool? enableSecurity,
})

Implementation

const AppText(
  this.data, {
  super.key,
  // ============== Style Configuration ==============
  this.style = AppTextStyle.medium,
  this.textStyle,
  // ============== Color Configuration ==============
  this.color,
  this.backgroundColor,
  this.decorationColor,
  this.gradient,
  // ============== Typography Configuration ==============
  this.fontSize,
  this.fontWeight,
  this.fontFamily,
  this.fontStyle,
  this.letterSpacing,
  this.wordSpacing,
  this.height,
  // ============== Text Decoration ==============
  this.decoration,
  this.decorationStyle,
  this.decorationThickness,
  // ============== Text Layout ==============
  this.textAlign,
  this.textDirection,
  this.maxLines,
  this.overflow,
  this.softWrap,
  // ============== Shadows ==============
  this.shadows,
  // ============== Interaction ==============
  this.onTap,
  this.onLongPress,
  this.onDoubleTap,
  this.selectable = false,
  // ============== Accessibility ==============
  this.semanticsLabel,
  // ============== Security ==============
  this.enableSecurity,
});