-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: typographyText rendering, possibly libtxtText rendering, possibly libtxtfound in release: 3.7Found to occur in 3.7Found to occur in 3.7found in release: 3.9Found to occur in 3.9Found to occur in 3.9frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Description
It looks like our overflow handling is pretty weird (if not just downright broken).
For instance, the following doesn't result in any overflow handling other than "clip", regardless of the overflow mode:
new Text(
'''Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n Phasellus sodales eros nec tortor maximus molestie.\nSed metus metus, viverra vel libero sed, commodo consequat ipsum. Sed commodo ultricies ligula, sed ultricies diam dignissim vitae. ''',
softWrap: true,
maxLines: 2,
textAlign: TextAlign.start,
overflow: TextOverflow.ellipsis,
),I would expect that since there is more text to be displayed than the maxLines, that we do show the ellipsis at the end of the second line.
Also, if I remove the hard newlines, then the ellipsis does appear at the end of the second line, which is correct, but inconsistent. And if I then switch to overflow to fade, it fades the first line and the second, instead of just the second.
neiljaywarner, deckerst, pedromassangocode, jamesncl, osaxma and 3 more
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: typographyText rendering, possibly libtxtText rendering, possibly libtxtfound in release: 3.7Found to occur in 3.7Found to occur in 3.7found in release: 3.9Found to occur in 3.9Found to occur in 3.9frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team