Reagankm
Reagankm

Reputation: 5419

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

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?

Upvotes: 2

Views: 531

Answers (1)

Eric Seidel
Eric Seidel

Reputation: 3512

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

Upvotes: 6

Related Questions