-
Notifications
You must be signed in to change notification settings - Fork 6k
Fix text.dart height docs #8079
Conversation
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 |
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.
is "fallback" necessary here?
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.
This is not used unless the there is no textstyle attached to the span.
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.
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.
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.
That sounds great!
jamesderlin
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.
Did you want to do anything about the "multiple of the font size" thing that there was a complaint about?
|
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. |
mdebbar
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.
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?
|
The same changes should be mirrored in stub_ui also. |
* 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)
This reverts commit 69c83ce.
This reverts commit 69c83ce.
The docs did not properly reflect the renaming of lineHeight- > height and the introduction of strut.