Skip to content

Commit

Permalink
[web] Add BoxHeightStyle.strut (#15694)
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-simmons authored Jan 16, 2020
1 parent 839b34c commit bcb27fd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/web_ui/lib/src/ui/text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1132,6 +1132,14 @@ enum BoxHeightStyle {
///
/// {@macro flutter.dart:ui.boxHeightStyle.includeLineSpacing}
includeLineSpacingBottom,

/// Calculate box heights based on the metrics of this paragraph's [StrutStyle].
///
/// Boxes based on the strut will have consistent heights throughout the
/// entire paragraph. The top edge of each line will align with the bottom
/// edge of the previous line. It is possible for glyphs to extend outside
/// these boxes.
strut,
}

/// Defines various ways to horizontally bound the boxes returned by
Expand Down

0 comments on commit bcb27fd

Please sign in to comment.