CkText constructor
const
CkText({
- required String text,
- Key? key,
- int? maxLines,
- TextAlign textAlign = TextAlign.center,
- double left = 0,
- double right = 0,
- double top = 0,
- double bottom = 0,
- double? fontSize,
- FontWeight? fontWeight,
- Color? textColor,
- TextStyle? style,
- TextOverflow? overflow,
- bool? enableBorder = false,
- Color? borderColor,
- double? borderRadious,
- Color? backgroundColor,
- MainAxisAlignment? alignment,
- BorderRadius? borderRadiusOnly,
- Widget? suffix,
- Widget? preffix,
- bool isDescription = false,
- double? textHeight,
- bool autoResize = true,
- double minFontSize = 10,
- double? maxAutoFontSize,
- double stepGranularity = 0.5,
- bool? softWrap,
- Color? decorationColor,
- TextDecoration? decoration,
- TextDirection? textDirection,
- double? height,
- double textSpacing = 10,
- double textScaleFactor = .9,
- bool preventScaling = false,
- 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,
});