Skip to content

Conversation

@justinmc
Copy link
Contributor

@justinmc justinmc commented May 2, 2019

Reopening #30988 after it was reverted (due to build bug where my engine change isn't picked up).

Closes #26585

@justinmc justinmc requested a review from HansMuller May 2, 2019 18:22
@justinmc justinmc self-assigned this May 2, 2019
@justinmc justinmc mentioned this pull request May 2, 2019
Copy link
Contributor

@HansMuller HansMuller left a 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.
Copy link
Contributor

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
Copy link
Contributor

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

@justinmc
Copy link
Contributor Author

justinmc commented May 2, 2019

@Hixie Fixed! Thanks.

@dnfield dnfield added framework flutter/packages/flutter repository. See also f: labels. a: typography Text rendering, possibly libtxt labels May 3, 2019
@justinmc justinmc merged commit 0a3df1b into flutter:master May 3, 2019
@justinmc justinmc deleted the text-wrap-width branch May 3, 2019 18:41
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

a: typography Text rendering, possibly libtxt framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Text widget doesn't change it's size when line break happened

5 participants