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

Commit bcb27fd

Browse files
[web] Add BoxHeightStyle.strut (#15694)
1 parent 839b34c commit bcb27fd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/web_ui/lib/src/ui/text.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,6 +1132,14 @@ enum BoxHeightStyle {
11321132
///
11331133
/// {@macro flutter.dart:ui.boxHeightStyle.includeLineSpacing}
11341134
includeLineSpacingBottom,
1135+
1136+
/// Calculate box heights based on the metrics of this paragraph's [StrutStyle].
1137+
///
1138+
/// Boxes based on the strut will have consistent heights throughout the
1139+
/// entire paragraph. The top edge of each line will align with the bottom
1140+
/// edge of the previous line. It is possible for glyphs to extend outside
1141+
/// these boxes.
1142+
strut,
11351143
}
11361144

11371145
/// Defines various ways to horizontally bound the boxes returned by

0 commit comments

Comments
 (0)