TextExtend constructor

const TextExtend({
  1. String? text,
  2. ValueChanged<bool>? onHover,
  3. bool canOnHover = true,
  4. TextStyle? style,
  5. TextStyle? onHoverStyle,
  6. bool isSelectable = false,
  7. Widget? suffix,
  8. Widget? prefix,
  9. Widget? onHoverSuffix,
  10. Widget? onHoverPrefix,
  11. int? maxLength,
  12. double? width,
  13. double? height,
  14. BuilderChild? builder,
  15. CustomChildLayout? customChildLayout,
  16. bool animation = false,
  17. Duration animationTime = const Duration(milliseconds: 150),
  18. Offset startOffset = const Offset(0, 0),
  19. Offset endOffset = const Offset(0, -10),
  20. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  21. MainAxisSize mainAxisSize = MainAxisSize.max,
  22. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  23. TextDirection? textDirection,
  24. VerticalDirection verticalDirection = VerticalDirection.down,
  25. Locale? locale,
  26. bool? softWrap,
  27. TextOverflow? overflow,
  28. int? maxLines,
  29. String? semanticsLabel,
  30. TextWidthBasis? textWidthBasis,
  31. TextAlign? textAlign,
  32. TextBaseline? textBaseline,
  33. AlignmentGeometry? alignment,
  34. EdgeInsetsGeometry? padding,
  35. Color? color,
  36. Decoration? decoration,
  37. Decoration? foregroundDecoration,
  38. BoxConstraints? constraints,
  39. EdgeInsetsGeometry? margin,
  40. Matrix4? transform,
  41. AlignmentGeometry? transformAlignment,
  42. AlignmentGeometry? onHoverAlignment,
  43. EdgeInsetsGeometry? onHoverPadding,
  44. Color? onHoverColor,
  45. Decoration? onHoverDecoration,
  46. Decoration? onHoverForegroundDecoration,
  47. BoxConstraints? onHoverConstraints,
  48. EdgeInsetsGeometry? onHoverMargin,
  49. Matrix4? onHoverTransform,
  50. AlignmentGeometry? onHoverTransformAlignment,
  51. GestureTapCallback? onTap,
  52. GestureTapDownCallback? onTapDown,
  53. GestureTapUpCallback? onTapUp,
  54. GestureTapCallback? onTapCancel,
  55. GestureTapCallback? onDoubleTap,
  56. GestureLongPressCallback? onLongPress,
  57. GestureTapCallback? onSecondaryTap,
  58. GestureTapDownCallback? onSecondaryTapDown,
  59. GestureTapUpCallback? onSecondaryTapUp,
  60. GestureTapCallback? onSecondaryTapCancel,
  61. ValueChanged<bool>? onHighlightChanged,
  62. MouseCursor? mouseCursor,
  63. bool containedInkWell = false,
  64. BoxShape highlightShape = BoxShape.circle,
  65. double? radius,
  66. BorderRadius? borderRadius,
  67. ShapeBorder? customBorder,
  68. Color? focusColor,
  69. Color? hoverColor,
  70. Color? highlightColor,
  71. WidgetStateProperty<Color?>? overlayColor,
  72. Color? splashColor,
  73. InteractiveInkFeatureFactory? splashFactory,
  74. bool enableFeedback = true,
  75. bool excludeFromSemantics = false,
  76. FocusNode? focusNode,
  77. bool canRequestFocus = true,
  78. ValueChanged<bool>? onFocusChange,
  79. bool autofocus = false,
  80. Key? key,
})

Implementation

const TextExtend({this.text,
  this.onHover,
  this.canOnHover = true,
  this.style,
  this.onHoverStyle,
  this.isSelectable = false,
  this.suffix,
  this.prefix,
  this.onHoverSuffix,
  this.onHoverPrefix,
  this.maxLength,
  this.width,
  this.height,
  this.builder,
  this.customChildLayout,
  this.animation = false,
  this.animationTime = const Duration(milliseconds: 150),
  this.startOffset = const Offset(0, 0),
  this.endOffset = const Offset(0, -10),
  this.mainAxisAlignment = MainAxisAlignment.start,
  this.mainAxisSize = MainAxisSize.max,
  this.crossAxisAlignment = CrossAxisAlignment.center,
  this.textDirection,
  this.verticalDirection = VerticalDirection.down,

  this.locale,
  this.softWrap,
  this.overflow,
  this.maxLines,
  this.semanticsLabel,
  this.textWidthBasis,
  this.textAlign,

  this.textBaseline,
  this.alignment,
  this.padding,
  this.color,
  this.decoration,
  this.foregroundDecoration,
  this.constraints,
  this.margin,
  this.transform,
  this.transformAlignment,
  this.onHoverAlignment,
  this.onHoverPadding,
  this.onHoverColor,
  this.onHoverDecoration,
  this.onHoverForegroundDecoration,
  this.onHoverConstraints,
  this.onHoverMargin,
  this.onHoverTransform,
  this.onHoverTransformAlignment,
  this.onTap,
  this.onTapDown,
  this.onTapUp,
  this.onTapCancel,
  this.onDoubleTap,
  this.onLongPress,
  this.onSecondaryTap,
  this.onSecondaryTapDown,
  this.onSecondaryTapUp,
  this.onSecondaryTapCancel,
  this.onHighlightChanged,
  this.mouseCursor,
  this.containedInkWell = false,
  this.highlightShape = BoxShape.circle,
  this.radius,
  this.borderRadius,
  this.customBorder,
  this.focusColor,
  this.hoverColor,
  this.highlightColor,
  this.overlayColor,
  this.splashColor,
  this.splashFactory,
  this.enableFeedback = true,
  this.excludeFromSemantics = false,
  this.focusNode,
  this.canRequestFocus = true,
  this.onFocusChange,
  this.autofocus = false,
  Key? key})
    : super(key: key);