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