I have a Text widget with styling and decoration. Currently I can make the overflow text as ellipses at end. But I want to add ellipses in the middle. I found this library extended_text. But this takes a widget by default and then a child widget in the overflowWidget. How am I supposed to use it properly? Can someone help me out?
Text(text, overflow: textOverflow, style: style.copyWith( color: color, fontWeight: fontWeight, decoration: underlined ? TextDecoration.underline : null));
I have to convert the above widget into extended widget.
Based on the example of extended_text, you can easily convert your current
Textwidget intoExtendedTextusing the following example.TextOverflowPosition.middleTextOverflowPosition.startTextOverflowPosition.end