ExpandableText.lines constructor
ExpandableText.lines(
- String text, {
- required int? lines,
- Color? arrowColor,
- double arrowSize = 24,
- ArrowBuilder? arrowWidgetBuilder,
- Duration animationDuration = const Duration(milliseconds: 150),
- TextStyle? textStyle,
- StrutStyle? strutStyle,
- TextAlign textAlign = TextAlign.start,
- TextDirection textDirection = TextDirection.ltr,
- Locale? locale,
- double textScaleFactor = 1,
- TextWidthBasis textWidthBasis = TextWidthBasis.parent,
- bool expand = false,
- Alignment alignment = Alignment.topCenter,
- Key? key,
Auto control
Collapse text to max lines.
If the text's line < maxLines
, then will show text directly
Implementation
ExpandableText.lines(this.text,
{required this.lines,
this.arrowColor,
this.arrowSize = 24,
this.arrowWidgetBuilder,
this.animationDuration = const Duration(milliseconds: 150),
this.textStyle,
this.strutStyle,
this.textAlign = TextAlign.start,
this.textDirection = TextDirection.ltr,
this.locale,
this.textScaleFactor = 1,
this.textWidthBasis = TextWidthBasis.parent,
this.expand = false,
this.alignment = Alignment.topCenter,
Key? key})
: vsync = null,
expandMode = _ExpandMode.Lines,
super(key: key);