Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 67cb0f3

Browse files
authored
Revert "[web] Switch web-render option default to auto (#23090)" (#23161)
This reverts commit 50e7d89.
1 parent d941aef commit 67cb0f3

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/web_ui/dev/test_runner.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,8 +619,6 @@ 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',
624622
'-O2',
625623
'-o',
626624
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: true);
34+
bool.fromEnvironment('FLUTTER_WEB_AUTO_DETECT', defaultValue: false);
3535

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

0 commit comments

Comments
 (0)