Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected wrapping with text height style and maxLines > 1 #19

Closed
insin opened this issue May 28, 2019 · 1 comment
Closed

Unexpected wrapping with text height style and maxLines > 1 #19

insin opened this issue May 28, 2019 · 1 comment

Comments

@insin
Copy link

insin commented May 28, 2019

Thanks for making this widget, I've been a grateful user of it in pretty much every Flutter app I've made so far 👍

I saw a weird text wrapping case in an app I was working on which uses auto_size_text 1.1.2 and thought I'd report it in case this was something the text fitting detection could handle, or if the cause is something users should avoid doing.

I noticed a number of cases where certain single word text was having its last letter wrapped, like so:

studio64_AECas57Jjb

I was able to make it resize as expected by setting maxLines to 1 or by omitting the text height styling (the workaround I ended using was only setting maxLines to 2 if the text contains a space).

7PbxWXPDjo

Other version info:

Flutter 1.5.4-hotfix.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 7a4c33425d (4 weeks ago) • 2019-04-29 11:05:24 -0700
Engine • revision 52c7a1e849
Tools • Dart 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)
@simc
Copy link
Owner

simc commented May 28, 2019

Thanks for reporting this.
Could you please test auto_size_text: 2.0.0-dev with the new parameter wrapWords: false.

This should solve your problem.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants