Commit b4173e20 authored by Devon Carew's avatar Devon Carew

fix to showing a progress display for long tasks (#3265)

parent 64a50071
...@@ -243,7 +243,7 @@ class _AnsiStatus extends Status { ...@@ -243,7 +243,7 @@ class _AnsiStatus extends Status {
double seconds = stopwatch.elapsedMilliseconds / 1000.0; double seconds = stopwatch.elapsedMilliseconds / 1000.0;
print('\b\b\b\b${seconds.toStringAsFixed(1)}s'); print('\b\b\b\b${seconds.toStringAsFixed(1)}s');
} else { } else {
print('\b'); print('\b ');
} }
timer.cancel(); timer.cancel();
...@@ -255,7 +255,7 @@ class _AnsiStatus extends Status { ...@@ -255,7 +255,7 @@ class _AnsiStatus extends Status {
return; return;
live = false; live = false;
print('\b'); print('\b ');
timer.cancel(); timer.cancel();
} }
} }
...@@ -18,7 +18,7 @@ class PrecacheCommand extends Command { ...@@ -18,7 +18,7 @@ class PrecacheCommand extends Command {
@override @override
Future<int> run() async { Future<int> run() async {
if (cache.isUpToDate()) if (cache.isUpToDate())
printStatus('All up-to-date.'); printStatus('Already up-to-date.');
else else
await cache.updateAll(); await cache.updateAll();
......
...@@ -196,8 +196,8 @@ class FlutterCommandRunner extends CommandRunner { ...@@ -196,8 +196,8 @@ class FlutterCommandRunner extends CommandRunner {
if (globalResults['verbose']) if (globalResults['verbose'])
context[Logger] = new VerboseLogger(); context[Logger] = new VerboseLogger();
if (!globalResults['color']) if (globalResults.wasParsed('color'))
logger.supportsColor = false; logger.supportsColor = globalResults['color'];
// we must set ArtifactStore.flutterRoot early because other features use it // we must set ArtifactStore.flutterRoot early because other features use it
// (e.g. enginePath's initialiser uses it) // (e.g. enginePath's initialiser uses it)
......
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