Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
1c4791e6
Unverified
Commit
1c4791e6
authored
Dec 01, 2020
by
Jonah Williams
Committed by
GitHub
Dec 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] update some web configuration defaults (#71433)
parent
5d201a35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
features.dart
packages/flutter_tools/lib/src/features.dart
+9
-3
resident_web_runner.dart
...s/flutter_tools/lib/src/isolated/resident_web_runner.dart
+8
-6
No files found.
packages/flutter_tools/lib/src/features.dart
View file @
1c4791e6
...
...
@@ -134,15 +134,19 @@ const Feature flutterWebFeature = Feature(
environmentOverride:
'FLUTTER_WEB'
,
master:
FeatureChannelSetting
(
available:
true
,
enabledByDefault:
fals
e
,
enabledByDefault:
tru
e
,
),
dev:
FeatureChannelSetting
(
available:
true
,
enabledByDefault:
f
alse
,
enabledByDefault:
f
lutterNext
,
),
beta:
FeatureChannelSetting
(
available:
true
,
enabledByDefault:
false
,
enabledByDefault:
flutterNext
,
),
stable:
FeatureChannelSetting
(
available:
flutterNext
,
enabledByDefault:
flutterNext
,
),
);
...
...
@@ -378,3 +382,5 @@ class FeatureChannelSetting {
/// If not provided, defaults to `false`.
final
bool
enabledByDefault
;
}
const
bool
flutterNext
=
false
;
packages/flutter_tools/lib/src/isolated/resident_web_runner.dart
View file @
1c4791e6
...
...
@@ -184,12 +184,14 @@ abstract class ResidentWebRunner extends ResidentRunner {
fire
+
globals
.
terminal
.
bolden
(
rawMessage
),
TerminalColor
.
red
,
);
globals
.
printStatus
(
"Warning: Flutter's support for web development is not stable yet and hasn't"
);
globals
.
printStatus
(
'been thoroughly tested in production environments.'
);
globals
.
printStatus
(
'For more information see https://flutter.dev/web'
);
globals
.
printStatus
(
''
);
globals
.
printStatus
(
message
);
if
(!
flutterNext
)
{
globals
.
printStatus
(
"Warning: Flutter's support for web development is not stable yet and hasn't"
);
globals
.
printStatus
(
'been thoroughly tested in production environments.'
);
globals
.
printStatus
(
'For more information see https://flutter.dev/web'
);
globals
.
printStatus
(
''
);
globals
.
printStatus
(
message
);
}
const
String
quitMessage
=
'To quit, press "q".'
;
if
(
device
.
device
is
!
WebServerDevice
)
{
globals
.
printStatus
(
'For a more detailed help message, press "h".
$quitMessage
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment