Skip to content

Commit 1f19e2c

Browse files
ferhatbgspencergoog
authored andcommitted
[web] Reland - Switch web-render option default to auto (flutter#23313)
1 parent 7b13955 commit 1f19e2c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/web_ui/dev/test_runner.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,8 @@ class TestCommand extends Command<bool> with ArgUtils {
619619
'--enable-experiment=non-nullable',
620620
'--no-sound-null-safety',
621621
if (input.forCanvasKit) '-DFLUTTER_WEB_USE_SKIA=true',
622+
if (!input.forCanvasKit) '-DFLUTTER_WEB_AUTO_DETECT=false',
623+
if (!input.forCanvasKit) '-DFLUTTER_WEB_USE_SKIA=false',
622624
'-O2',
623625
'-o',
624626
targetFileName, // target path.

lib/web_ui/lib/src/engine/canvaskit/initialization.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ bool _detectRenderer() {
3131
/// Using flutter tools option "--web-render=auto" would set the value to true.
3232
/// Otherwise, it would be false.
3333
const bool _autoDetect =
34-
bool.fromEnvironment('FLUTTER_WEB_AUTO_DETECT', defaultValue: false);
34+
bool.fromEnvironment('FLUTTER_WEB_AUTO_DETECT', defaultValue: true);
3535

3636
/// Enable the Skia-based rendering backend.
3737
///

0 commit comments

Comments
 (0)