fix to showing a progress display for long tasks (#3265)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user