From da2c3742b0a4af4d7cf629fcc1ade58000222567 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 16 Jan 2020 10:35:04 -0800 Subject: [PATCH] [web] Add BoxHeightStyle.strut --- lib/web_ui/lib/src/ui/text.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/web_ui/lib/src/ui/text.dart b/lib/web_ui/lib/src/ui/text.dart index 52f95eda38e35..fd4a237aaaff2 100644 --- a/lib/web_ui/lib/src/ui/text.dart +++ b/lib/web_ui/lib/src/ui/text.dart @@ -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