AppText constructor
const
AppText(
- String data, {
- Key? key,
- AppTextStyle style = AppTextStyle.medium,
- TextStyle? textStyle,
- Color? color,
- Color? backgroundColor,
- Color? decorationColor,
- Gradient? gradient,
- double? fontSize,
- FontWeight? fontWeight,
- String? fontFamily,
- FontStyle? fontStyle,
- double? letterSpacing,
- double? wordSpacing,
- double? height,
- AppTextDecoration? decoration,
- TextDecorationStyle? decorationStyle,
- double? decorationThickness,
- TextAlign? textAlign,
- TextDirection? textDirection,
- int? maxLines,
- TextOverflow? overflow,
- bool? softWrap,
- List<
Shadow> ? shadows, - VoidCallback? onTap,
- VoidCallback? onLongPress,
- VoidCallback? onDoubleTap,
- bool selectable = false,
- String? semanticsLabel,
- 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,
});