Is there a way to control where a Text widget overflow occurs (how many lines)?

548 Views Asked by At

Right now it seems like if I set the overflow to TextOverflow.ellipsis it cuts off the text at the end of the first line. I want the text to be able to wrap to and fill a second line but no farther. If the content exceeds the length of the second line, then I'd like it to display ellipsis.

Is there an alternative way of doing this?

1

There are 1 best solutions below

0
On BEST ANSWER

As of Jan 3, 2017, we do not currently provide a Widget which supports multi-line overflow effects, however we do have an issue on file requesting this: https://github.com/flutter/flutter/issues/4202