mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
fix to showing a progress display for long tasks (#3265)
This commit is contained in:
parent
64a5007126
commit
b4173e20d4
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue