Skip to content

Commit f6a3eb9

Browse files
authored
[web] Allow users to enable canvas text measurement (flutter#13929)
1 parent 96fc607 commit f6a3eb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web_ui/lib/src/engine/text/measurement.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ abstract class TextMeasurementService {
184184
///
185185
/// This is only used for testing at the moment. Once the implementation is
186186
/// complete and production-ready, we'll get rid of this flag.
187-
static bool enableExperimentalCanvasImplementation = false;
187+
static bool enableExperimentalCanvasImplementation = const bool.fromEnvironment('FLUTTER_WEB_USE_EXPERIMENTAL_CANVAS_TEXT', defaultValue: false);
188188

189189
/// Gets the appropriate [TextMeasurementService] instance for the given
190190
/// [paragraph].

0 commit comments

Comments
 (0)