CkText constructor

const CkText({
  1. required String text,
  2. Key? key,
  3. int? maxLines,
  4. TextAlign textAlign = TextAlign.center,
  5. double left = 0,
  6. double right = 0,
  7. double top = 0,
  8. double bottom = 0,
  9. double? fontSize,
  10. FontWeight? fontWeight,
  11. Color? textColor,
  12. TextStyle? style,
  13. TextOverflow? overflow,
  14. bool? enableBorder = false,
  15. Color? borderColor,
  16. double? borderRadious,
  17. Color? backgroundColor,
  18. MainAxisAlignment? alignment,
  19. BorderRadius? borderRadiusOnly,
  20. Widget? suffix,
  21. Widget? preffix,
  22. bool isDescription = false,
  23. double? textHeight,
  24. bool autoResize = true,
  25. double minFontSize = 10,
  26. double? maxAutoFontSize,
  27. double stepGranularity = 0.5,
  28. bool? softWrap,
  29. Color? decorationColor,
  30. TextDecoration? decoration,
  31. TextDirection? textDirection,
  32. double? height,
  33. double textSpacing = 10,
  34. double textScaleFactor = .9,
  35. bool preventScaling = false,
  36. Gradient? gradient,
})

Implementation

const CkText({
  required this.text,
  super.key,
  this.maxLines,
  this.textAlign = TextAlign.center,
  this.left = 0,
  this.right = 0,
  this.top = 0,
  this.bottom = 0,
  this.fontSize,
  this.fontWeight,
  this.textColor,
  this.style,
  this.overflow,
  this.enableBorder = false,
  this.borderColor,
  this.borderRadious,
  this.backgroundColor,
  this.alignment,
  this.borderRadiusOnly,
  this.suffix,
  this.preffix,
  this.isDescription = false,
  this.textHeight,
  this.autoResize = true,
  this.minFontSize = 10,
  this.maxAutoFontSize,
  this.stepGranularity = 0.5,
  this.softWrap,
  this.decorationColor,
  this.decoration,
  this.textDirection,
  this.height,
  this.textSpacing = 10,
  this.textScaleFactor = .9,
  this.preventScaling = false,
  this.gradient,
});