AutoSizeText.rich constructor
const
AutoSizeText.rich(
- TextSpan textSpan, {
- Key? key,
- Key? textKey,
- TextStyle? style,
- StrutStyle? strutStyle,
- double minFontSize = 12,
- double maxFontSize = double.infinity,
- double stepGranularity = 1,
- List<
double> ? presetFontSizes, - AutoSizeGroup? group,
- TextAlign? textAlign,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- bool wrapWords = true,
- TextOverflow? overflow,
- Widget? overflowReplacement,
- double? textScaleFactor,
- int? maxLines,
- String? semanticsLabel,
Creates a AutoSizeText widget with a TextSpan.
Implementation
const AutoSizeText.rich(
TextSpan this.textSpan, {
Key? key,
this.textKey,
this.style,
this.strutStyle,
this.minFontSize = 12,
this.maxFontSize = double.infinity,
this.stepGranularity = 1,
this.presetFontSizes,
this.group,
this.textAlign,
this.textDirection,
this.locale,
this.softWrap,
this.wrapWords = true,
this.overflow,
this.overflowReplacement,
this.textScaleFactor,
this.maxLines,
this.semanticsLabel,
}) : data = null,
autofocus = false,
showCursor = false,
cursorWidth = 2.0,
cursorHeight = null,
cursorRadius = null,
focusNode = null,
cursorColor = null,
enableInteractiveSelection = false,
selectionControls = null,
dragStartBehavior = DragStartBehavior.start,
toolbarOptions = null,
onTap = null,
scrollPhysics = null,
onSelectionChanged = null,
minLines = null,
selectionHeightStyle = ui.BoxHeightStyle.tight,
selectionWidthStyle = ui.BoxWidthStyle.tight,
_isSelectableText = false,
super(key: key);