From bcb27fdd6cf1c525f8eda8654a4b4a97a66bf96c Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 16 Jan 2020 11:43:05 -0800 Subject: [PATCH] [web] Add BoxHeightStyle.strut (#15694) --- 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