Skip to content

Commit

Permalink
[web] Allow users to enable canvas text measurement (#13929)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdebbar committed Nov 21, 2019
1 parent 96fc607 commit f6a3eb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/web_ui/lib/src/engine/text/measurement.dart
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ abstract class TextMeasurementService {
///
/// This is only used for testing at the moment. Once the implementation is
/// complete and production-ready, we'll get rid of this flag.
static bool enableExperimentalCanvasImplementation = false;
static bool enableExperimentalCanvasImplementation = const bool.fromEnvironment('FLUTTER_WEB_USE_EXPERIMENTAL_CANVAS_TEXT', defaultValue: false);

/// Gets the appropriate [TextMeasurementService] instance for the given
/// [paragraph].
Expand Down

0 comments on commit f6a3eb9

Please sign in to comment.