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
e4b97967
Unverified
Commit
e4b97967
authored
Oct 20, 2022
by
Christopher Fujino
Committed by
GitHub
Oct 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] Implement NotifyingLogger.supportsColor (#113635)
parent
637e5bce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
daemon.dart
packages/flutter_tools/lib/src/commands/daemon.dart
+1
-1
daemon_test.dart
...utter_tools/test/commands.shard/hermetic/daemon_test.dart
+5
-0
No files found.
packages/flutter_tools/lib/src/commands/daemon.dart
View file @
e4b97967
...
...
@@ -1259,7 +1259,7 @@ class NotifyingLogger extends DelegatingLogger {
void
sendEvent
(
String
name
,
[
Map
<
String
,
Object
?>?
args
])
{
}
@override
bool
get
supportsColor
=>
throw
UnimplementedError
()
;
bool
get
supportsColor
=>
false
;
@override
bool
get
hasTerminal
=>
false
;
...
...
packages/flutter_tools/test/commands.shard/hermetic/daemon_test.dart
View file @
e4b97967
...
...
@@ -708,6 +708,11 @@ void main() {
expect
(
message
.
level
,
'status'
);
expect
(
message
.
message
,
'hello'
);
});
testWithoutContext
(
'responds to .supportsColor'
,
()
async
{
final
NotifyingLogger
logger
=
NotifyingLogger
(
verbose:
false
,
parent:
bufferLogger
);
expect
(
logger
.
supportsColor
,
isFalse
);
});
});
group
(
'daemon queue'
,
()
{
...
...
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