TextView<T extends TextViewController> constructor

const TextView<T extends TextViewController>({
  1. Key? key,
  2. T? controller,
  3. OnViewActivator? onActivator,
  4. OnViewChangeListener? onChange,
  5. OnViewErrorListener? onError,
  6. OnViewHoverListener? onHover,
  7. OnViewValidListener? onValid,
  8. OnViewValidatorListener? onValidator,
  9. ViewClickEffect? clickEffect,
  10. OnViewClickListener? onClick,
  11. OnViewClickListener? onDoubleClick,
  12. OnViewClickListener? onLongClick,
  13. OnViewToggleListener? onToggleClick,
  14. bool? absorbMode,
  15. bool? activated,
  16. Color? background,
  17. ValueState<Color>? backgroundState,
  18. BlendMode? backgroundBlendMode,
  19. Gradient? backgroundGradient,
  20. ValueState<Gradient>? backgroundGradientState,
  21. DecorationImage? backgroundImage,
  22. ValueState<DecorationImage>? backgroundImageState,
  23. Clip? clipBehavior,
  24. double? dimensionRatio,
  25. double? elevation,
  26. bool? enabled,
  27. bool? expandable,
  28. Color? foreground,
  29. BlendMode? foregroundBlendMode,
  30. Gradient? foregroundGradient,
  31. DecorationImage? foregroundImage,
  32. int? flex,
  33. Alignment? gravity,
  34. double? height,
  35. ValueState<double>? heightState,
  36. double? heightMax,
  37. double? heightMin,
  38. Color hoverColor = Colors.transparent,
  39. Axis? orientation,
  40. ViewPosition? position,
  41. ViewPositionType? positionType,
  42. Color pressedColor = Colors.transparent,
  43. Color rippleColor = Colors.transparent,
  44. bool? scrollable,
  45. ScrollController? scrollController,
  46. ViewScrollingType? scrollingType,
  47. ViewShape? shape,
  48. Matrix4? transform,
  49. Alignment? transformGravity,
  50. bool? visibility,
  51. double? width,
  52. ValueState<double>? widthState,
  53. double? widthMax,
  54. double? widthMin,
  55. int? animation,
  56. Curve? animationType,
  57. ImageFilter? backdropFilter,
  58. BlendMode? backdropMode,
  59. Color? borderColor,
  60. ValueState<Color>? borderColorState,
  61. double? borderSize,
  62. ValueState<double>? borderSizeState,
  63. double? borderHorizontal,
  64. ValueState<double>? borderHorizontalState,
  65. double? borderVertical,
  66. ValueState<double>? borderVerticalState,
  67. double? borderTop,
  68. ValueState<double>? borderTopState,
  69. double? borderBottom,
  70. ValueState<double>? borderBottomState,
  71. double? borderStart,
  72. ValueState<double>? borderStartState,
  73. double? borderEnd,
  74. ValueState<double>? borderEndState,
  75. double? borderStrokeAlign,
  76. double? borderRadius,
  77. ValueState<double>? borderRadiusState,
  78. double? borderRadiusBL,
  79. ValueState<double>? borderRadiusBLState,
  80. double? borderRadiusBR,
  81. ValueState<double>? borderRadiusBRState,
  82. double? borderRadiusTL,
  83. ValueState<double>? borderRadiusTLState,
  84. double? borderRadiusTR,
  85. ValueState<double>? borderRadiusTRState,
  86. bool indicatorVisible = false,
  87. double? margin,
  88. double? marginHorizontal,
  89. double? marginVertical,
  90. double? marginTop,
  91. double? marginBottom,
  92. double? marginStart,
  93. double? marginEnd,
  94. EdgeInsets? marginCustom,
  95. double? opacity,
  96. ValueState<double>? opacityState,
  97. bool opacityAlwaysIncludeSemantics = false,
  98. double? padding,
  99. double? paddingHorizontal,
  100. double? paddingVertical,
  101. double? paddingTop,
  102. double? paddingBottom,
  103. double? paddingStart,
  104. double? paddingEnd,
  105. EdgeInsets? paddingCustom,
  106. double? shadow,
  107. double? shadowBlurRadius,
  108. BlurStyle? shadowBlurStyle,
  109. Color? shadowColor,
  110. ViewShadowType? shadowType,
  111. double? shadowSpreadRadius,
  112. double? shadowHorizontal,
  113. double? shadowVertical,
  114. double? shadowStart,
  115. double? shadowEnd,
  116. double? shadowTop,
  117. double? shadowBottom,
  118. String? ellipsis,
  119. double? letterSpacing,
  120. double lineSpacingExtra = 0,
  121. Locale? locale,
  122. int maxCharacters = 0,
  123. int? maxLines,
  124. Color? selectionColor,
  125. String? semanticsLabel,
  126. bool? softWrap,
  127. StrutStyle? strutStyle,
  128. double? wordSpacing,
  129. required String? text,
  130. ValueState<String>? textState,
  131. TextAlign? textAlign,
  132. bool textAllCaps = false,
  133. Color? textColor,
  134. ValueState<Color>? textColorState,
  135. TextDecoration? textDecoration,
  136. Color? textDecorationColor,
  137. TextDecorationStyle? textDecorationStyle,
  138. double? textDecorationThickness,
  139. TextDirection? textDirection,
  140. String? textFontFamily,
  141. FontStyle? textFontStyle,
  142. FontWeight? textFontWeight,
  143. ValueState<FontWeight>? textFontWeightState,
  144. TextHeightBehavior? textHeightBehavior,
  145. TextLeadingDistribution? textLeadingDistribution,
  146. TextOverflow? textOverflow,
  147. double? textSize,
  148. ValueState<double>? textSizeState,
  149. List<TextSpan> textSpans = const [],
  150. TextStyle? textStyle,
  151. ValueState<TextStyle>? textStyleState,
  152. TextWidthBasis textWidthBasis = TextWidthBasis.parent,
  153. ValueChanged<BuildContext>? onTextClick,
  154. FontStyle? prefixFontStyle,
  155. FontWeight? prefixFontWeight,
  156. ValueState<FontWeight>? prefixFontWeightState,
  157. String? prefixText,
  158. ValueState<String>? prefixTextState,
  159. bool prefixTextAllCaps = false,
  160. Color? prefixTextColor,
  161. ValueState<Color>? prefixTextColorState,
  162. TextDecoration? prefixTextDecoration,
  163. Color? prefixTextDecorationColor,
  164. TextDecorationStyle? prefixTextDecorationStyle,
  165. double? prefixTextDecorationThickness,
  166. double? prefixTextLetterSpace,
  167. double? prefixTextSize,
  168. ValueState<double>? prefixTextSizeState,
  169. TextStyle? prefixTextStyle,
  170. ValueState<TextStyle>? prefixTextStyleState,
  171. bool prefixTextVisible = true,
  172. ValueChanged<BuildContext>? onPrefixClick,
  173. String? suffixText,
  174. ValueState<String>? suffixTextState,
  175. bool suffixTextAllCaps = false,
  176. Color? suffixTextColor,
  177. ValueState<Color>? suffixTextColorState,
  178. TextDecoration? suffixTextDecoration,
  179. Color? suffixTextDecorationColor,
  180. TextDecorationStyle? suffixTextDecorationStyle,
  181. double? suffixTextDecorationThickness,
  182. double? suffixTextLetterSpace,
  183. double? suffixTextSize,
  184. ValueState<double>? suffixTextSizeState,
  185. FontStyle? suffixFontStyle,
  186. FontWeight? suffixFontWeight,
  187. ValueState<FontWeight>? suffixFontWeightState,
  188. bool suffixTextVisible = true,
  189. TextStyle? suffixTextStyle,
  190. ValueState<TextStyle>? suffixTextStyleState,
  191. ValueChanged<BuildContext>? onSuffixClick,
})

Implementation

const TextView({
  /// ROOT PROPERTIES
  super.key,
  super.controller,

  /// CALLBACK PROPERTIES
  super.onActivator,
  super.onChange,
  super.onError,
  super.onHover,
  super.onValid,
  super.onValidator,

  /// CLICK PROPERTIES
  super.clickEffect,
  super.onClick,
  super.onDoubleClick,
  super.onLongClick,
  super.onToggleClick,

  ///BASE PROPERTIES
  super.absorbMode,
  super.activated,
  super.background,
  super.backgroundState,
  super.backgroundBlendMode,
  super.backgroundGradient,
  super.backgroundGradientState,
  super.backgroundImage,
  super.backgroundImageState,
  super.clipBehavior,
  super.dimensionRatio,
  super.elevation,
  super.enabled,
  super.expandable,
  super.foreground,
  super.foregroundBlendMode,
  super.foregroundGradient,
  super.foregroundImage,
  super.flex,
  super.gravity,
  super.height,
  super.heightState,
  super.heightMax,
  super.heightMin,
  super.hoverColor,
  super.orientation,
  super.position,
  super.positionType,
  super.pressedColor,
  super.rippleColor,
  super.scrollable,
  super.scrollController,
  super.scrollingType,
  super.shape,
  super.transform,
  super.transformGravity,
  super.visibility,
  super.width,
  super.widthState,
  super.widthMax,
  super.widthMin,

  /// ANIMATION PROPERTIES
  super.animation,
  super.animationType,

  /// BACKDROP PROPERTIES
  super.backdropFilter,
  super.backdropMode,

  /// BORDER PROPERTIES
  super.borderColor,
  super.borderColorState,
  super.borderSize,
  super.borderSizeState,
  super.borderHorizontal,
  super.borderHorizontalState,
  super.borderVertical,
  super.borderVerticalState,
  super.borderTop,
  super.borderTopState,
  super.borderBottom,
  super.borderBottomState,
  super.borderStart,
  super.borderStartState,
  super.borderEnd,
  super.borderEndState,
  super.borderStrokeAlign,

  /// BORDER RADIUS PROPERTIES
  super.borderRadius,
  super.borderRadiusState,
  super.borderRadiusBL,
  super.borderRadiusBLState,
  super.borderRadiusBR,
  super.borderRadiusBRState,
  super.borderRadiusTL,
  super.borderRadiusTLState,
  super.borderRadiusTR,
  super.borderRadiusTRState,

  /// INDICATOR PROPERTIES
  super.indicatorVisible,

  /// MARGIN PROPERTIES
  super.margin,
  super.marginHorizontal,
  super.marginVertical,
  super.marginTop,
  super.marginBottom,
  super.marginStart,
  super.marginEnd,
  super.marginCustom,

  /// OPACITY PROPERTIES
  super.opacity,
  super.opacityState,
  super.opacityAlwaysIncludeSemantics,

  /// PADDING PROPERTIES
  super.padding,
  super.paddingHorizontal,
  super.paddingVertical,
  super.paddingTop,
  super.paddingBottom,
  super.paddingStart,
  super.paddingEnd,
  super.paddingCustom,

  /// SHADOW PROPERTIES
  super.shadow,
  super.shadowBlurRadius,
  super.shadowBlurStyle,
  super.shadowColor,
  super.shadowType,
  super.shadowSpreadRadius,
  super.shadowHorizontal,
  super.shadowVertical,
  super.shadowStart,
  super.shadowEnd,
  super.shadowTop,
  super.shadowBottom,

  /// CHILD PROPERTIES
  this.ellipsis,
  this.letterSpacing,
  this.lineSpacingExtra = 0,
  this.locale,
  this.maxCharacters = 0,
  this.maxLines,
  this.selectionColor,
  this.semanticsLabel,
  this.softWrap,
  this.strutStyle,
  this.wordSpacing,
  required this.text,
  this.textState,
  this.textAlign,
  this.textAllCaps = false,
  this.textColor,
  this.textColorState,
  this.textDecoration,
  this.textDecorationColor,
  this.textDecorationStyle,
  this.textDecorationThickness,
  this.textDirection,
  this.textFontFamily,
  this.textFontStyle,
  this.textFontWeight,
  this.textFontWeightState,
  this.textHeightBehavior,
  this.textLeadingDistribution,
  this.textOverflow,
  this.textSize,
  this.textSizeState,
  this.textSpans = const [],
  this.textStyle,
  this.textStyleState,
  this.textWidthBasis = TextWidthBasis.parent,
  this.onTextClick,

  /// PREFIX
  this.prefixFontStyle,
  this.prefixFontWeight,
  this.prefixFontWeightState,
  this.prefixText,
  this.prefixTextState,
  this.prefixTextAllCaps = false,
  this.prefixTextColor,
  this.prefixTextColorState,
  this.prefixTextDecoration,
  this.prefixTextDecorationColor,
  this.prefixTextDecorationStyle,
  this.prefixTextDecorationThickness,
  this.prefixTextLetterSpace,
  this.prefixTextSize,
  this.prefixTextSizeState,
  this.prefixTextStyle,
  this.prefixTextStyleState,
  this.prefixTextVisible = true,
  this.onPrefixClick,

  /// SUFFIX
  this.suffixText,
  this.suffixTextState,
  this.suffixTextAllCaps = false,
  this.suffixTextColor,
  this.suffixTextColorState,
  this.suffixTextDecoration,
  this.suffixTextDecorationColor,
  this.suffixTextDecorationStyle,
  this.suffixTextDecorationThickness,
  this.suffixTextLetterSpace,
  this.suffixTextSize,
  this.suffixTextSizeState,
  this.suffixFontStyle,
  this.suffixFontWeight,
  this.suffixFontWeightState,
  this.suffixTextVisible = true,
  this.suffixTextStyle,
  this.suffixTextStyleState,
  this.onSuffixClick,
});