-
Notifications
You must be signed in to change notification settings - Fork 6k
libtxt: add a BoxHeightStyle option based on the height of the strut #8927
Conversation
|
Can you add a test in paragraph_unittests that verifies this behavior alongside the tests for each other mode? |
| /// {@macro flutter.dart:ui.boxHeightStyle.includeLineSpacing} | ||
| includeLineSpacingBottom, | ||
|
|
||
| /// Calculate box heights based on the metrics of this paragraph's [StrutStyle]. |
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 could use a bit more detail about the properties of this, such as each box will have the same height, and the top/bottoms of the boxes will line up with each other.
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.
done
| // The line spacing will be added to the bottom of the rect. | ||
| kIncludeLineSpacingBottom | ||
| kIncludeLineSpacingBottom, | ||
|
|
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.
extra space? not consistent with rest of the code.
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 intended to separate kStrut from the group of kIncludeLine values
|
Added a test - PTAL |
GaryQian
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!
flutter/engine@288a855...9d7cd70 git log 288a855..9d7cd70 --no-merges --oneline 9d7cd70 add observatoryUrl property to FlutterEngine (flutter/engine#8987) 34a5248 Add matrix4 param to Linear gradients (flutter/engine#8985) aa63f09 libtxt: add a BoxHeightStyle option based on the height of the strut (flutter/engine#8927) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.
See flutter/flutter#32332