Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@GaryQian
Copy link
Contributor

@GaryQian GaryQian commented Mar 7, 2019

The docs did not properly reflect the renaming of lineHeight- > height and the introduction of strut.

@GaryQian GaryQian requested a review from mdebbar March 7, 2019 23:07
lib/ui/text.dart Outdated
///
/// * `fontFamily`: The name of the font to use when painting the text (e.g.,
/// Roboto).
/// * `fontFamily`: The fallback name of the font to use when painting the text
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is "fallback" necessary here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not used unless the there is no textstyle attached to the span.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it might be clearer to state this as: The name of the font to apply when painting the text, in the absence of a ``textStyle`` being attached to the span.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds great!

Copy link
Contributor

@jamesderlin jamesderlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you want to do anything about the "multiple of the font size" thing that there was a complaint about?

@GaryQian
Copy link
Contributor Author

GaryQian commented Mar 7, 2019

Ahh good point, might as well change it with this patch. It will probably still need to be changed in an equivalent framework side patch also.

Copy link
Contributor

@mdebbar mdebbar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are 2 more mentions of lineHeight on line 813 and 817 (I can't add a comment on those lines). Do they need to be updated too?

@GaryQian
Copy link
Contributor Author

GaryQian commented Mar 8, 2019

The same changes should be mirrored in stub_ui also.

@GaryQian GaryQian merged commit 2daebeb into flutter:master Mar 13, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 13, 2019
willlarche pushed a commit to flutter/flutter that referenced this pull request Mar 13, 2019
* 59715b7 Disable build_ios task due to lack of credits. (flutter/engine#8150)

* 9f50dae Look up ICU symbols based on the path to libflutter.so as a fallback (flutter/engine#8139)

* 8b1a299 [Skia] Rollback Skia to 29d5dec9a0783a033b921dc483fb98d565d684f6 (flutter/engine#8151)

* 8be2aca Roll src/third_party/dart 1bd36d694d..674fd0e060 (48 commits) #8152

* 2e42703 Revert "Disable build_ios task due to lack of credits. (#8150)" (flutter/engine#8153)

* 2daebeb Fix text.dart height docs (flutter/engine#8079)

* b1b388f Encode scroll motion events in the Android touch processor (flutter/engine#8149)
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 14, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 14, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 14, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 14, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 14, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 14, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 14, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 14, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 14, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 14, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 15, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 15, 2019
RBogie pushed a commit to RBogie/flutter-engine that referenced this pull request Apr 8, 2019
RBogie added a commit to RBogie/flutter-engine that referenced this pull request Apr 8, 2019
RBogie added a commit to RBogie/flutter-engine that referenced this pull request Apr 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants