-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Text wrap width #31987
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
Text wrap width #31987
Conversation
HansMuller
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
|
||
| export 'package:flutter/services.dart' show TextRange, TextSelection; | ||
|
|
||
| /// The different ways of considering the width of a Text widget. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: use square brackets around any identifier (other than arguments that don't correspond to properties; those get backticks)
nit: this is in the painting layer, which doesn't have to be used with widgets. This can certainly talk about widgets, but it should also talk about TextPainter itself, which is what this layer knows about.
| /// [Text.maxLines]. | ||
| final int maxLines; | ||
|
|
||
| /// The strategy to use when calculating the width of the Text. See |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: same thing as above here, but additionally, put only one sentence in the first paragraph.
see https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#dartdoc-specific-requirements
|
@Hixie Fixed! Thanks. |
Reopening #30988 after it was reverted (due to build bug where my engine change isn't picked up).
Closes #26585