Unverified Commit 1c4791e6 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

[flutter_tools] update some web configuration defaults (#71433)

parent 5d201a35
...@@ -134,15 +134,19 @@ const Feature flutterWebFeature = Feature( ...@@ -134,15 +134,19 @@ const Feature flutterWebFeature = Feature(
environmentOverride: 'FLUTTER_WEB', environmentOverride: 'FLUTTER_WEB',
master: FeatureChannelSetting( master: FeatureChannelSetting(
available: true, available: true,
enabledByDefault: false, enabledByDefault: true,
), ),
dev: FeatureChannelSetting( dev: FeatureChannelSetting(
available: true, available: true,
enabledByDefault: false, enabledByDefault: flutterNext,
), ),
beta: FeatureChannelSetting( beta: FeatureChannelSetting(
available: true, available: true,
enabledByDefault: false, enabledByDefault: flutterNext,
),
stable: FeatureChannelSetting(
available: flutterNext,
enabledByDefault: flutterNext,
), ),
); );
...@@ -378,3 +382,5 @@ class FeatureChannelSetting { ...@@ -378,3 +382,5 @@ class FeatureChannelSetting {
/// If not provided, defaults to `false`. /// If not provided, defaults to `false`.
final bool enabledByDefault; final bool enabledByDefault;
} }
const bool flutterNext = false;
...@@ -184,12 +184,14 @@ abstract class ResidentWebRunner extends ResidentRunner { ...@@ -184,12 +184,14 @@ abstract class ResidentWebRunner extends ResidentRunner {
fire + globals.terminal.bolden(rawMessage), fire + globals.terminal.bolden(rawMessage),
TerminalColor.red, TerminalColor.red,
); );
globals.printStatus( if (!flutterNext) {
"Warning: Flutter's support for web development is not stable yet and hasn't"); globals.printStatus(
globals.printStatus('been thoroughly tested in production environments.'); "Warning: Flutter's support for web development is not stable yet and hasn't");
globals.printStatus('For more information see https://flutter.dev/web'); globals.printStatus('been thoroughly tested in production environments.');
globals.printStatus(''); globals.printStatus('For more information see https://flutter.dev/web');
globals.printStatus(message); globals.printStatus('');
globals.printStatus(message);
}
const String quitMessage = 'To quit, press "q".'; const String quitMessage = 'To quit, press "q".';
if (device.device is! WebServerDevice) { if (device.device is! WebServerDevice) {
globals.printStatus('For a more detailed help message, press "h". $quitMessage'); globals.printStatus('For a more detailed help message, press "h". $quitMessage');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment