TextExtend constructor
const
TextExtend({
- String? text,
- ValueChanged<
bool> ? onHover, - bool canOnHover = true,
- TextStyle? style,
- TextStyle? onHoverStyle,
- bool isSelectable = false,
- Widget? suffix,
- Widget? prefix,
- Widget? onHoverSuffix,
- Widget? onHoverPrefix,
- int? maxLength,
- double? width,
- double? height,
- BuilderChild? builder,
- CustomChildLayout? customChildLayout,
- bool animation = false,
- Duration animationTime = const Duration(milliseconds: 150),
- Offset startOffset = const Offset(0, 0),
- Offset endOffset = const Offset(0, -10),
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
- MainAxisSize mainAxisSize = MainAxisSize.max,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- TextDirection? textDirection,
- VerticalDirection verticalDirection = VerticalDirection.down,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- int? maxLines,
- String? semanticsLabel,
- TextWidthBasis? textWidthBasis,
- TextAlign? textAlign,
- TextBaseline? textBaseline,
- AlignmentGeometry? alignment,
- EdgeInsetsGeometry? padding,
- Color? color,
- Decoration? decoration,
- Decoration? foregroundDecoration,
- BoxConstraints? constraints,
- EdgeInsetsGeometry? margin,
- Matrix4? transform,
- AlignmentGeometry? transformAlignment,
- AlignmentGeometry? onHoverAlignment,
- EdgeInsetsGeometry? onHoverPadding,
- Color? onHoverColor,
- Decoration? onHoverDecoration,
- Decoration? onHoverForegroundDecoration,
- BoxConstraints? onHoverConstraints,
- EdgeInsetsGeometry? onHoverMargin,
- Matrix4? onHoverTransform,
- AlignmentGeometry? onHoverTransformAlignment,
- GestureTapCallback? onTap,
- GestureTapDownCallback? onTapDown,
- GestureTapUpCallback? onTapUp,
- GestureTapCallback? onTapCancel,
- GestureTapCallback? onDoubleTap,
- GestureLongPressCallback? onLongPress,
- GestureTapCallback? onSecondaryTap,
- GestureTapDownCallback? onSecondaryTapDown,
- GestureTapUpCallback? onSecondaryTapUp,
- GestureTapCallback? onSecondaryTapCancel,
- ValueChanged<
bool> ? onHighlightChanged, - MouseCursor? mouseCursor,
- bool containedInkWell = false,
- BoxShape highlightShape = BoxShape.circle,
- double? radius,
- BorderRadius? borderRadius,
- ShapeBorder? customBorder,
- Color? focusColor,
- Color? hoverColor,
- Color? highlightColor,
- MaterialStateProperty<
Color?> ? overlayColor, - Color? splashColor,
- InteractiveInkFeatureFactory? splashFactory,
- bool enableFeedback = true,
- bool excludeFromSemantics = false,
- FocusNode? focusNode,
- bool canRequestFocus = true,
- ValueChanged<
bool> ? onFocusChange, - bool autofocus = false,
- 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);