Unverified Commit 2302daa3 authored by Jesús S Guerrero's avatar Jesús S Guerrero Committed by GitHub

Create when offline style (#101589)

parent 63a6e900
......@@ -1301,11 +1301,10 @@ abstract class FlutterCommand extends Command<void> {
if (shouldUpdateCache) {
// First always update universal artifacts, as some of these (e.g.
// ios-deploy on macOS) are required to determine `requiredArtifacts`.
bool offline;
final bool offline;
if (argParser.options.containsKey('offline')) {
offline = boolArg('offline');
}
else {
} else {
offline = false;
}
await globals.cache.updateAll(<DevelopmentArtifact>{DevelopmentArtifact.universal}, offline: offline);
......
......@@ -40,10 +40,9 @@ class FakePub extends Fake implements Pub {
bool printProgress = true,
}) async {
fs.directory(directory).childFile('.packages').createSync();
if (offline == true){
if (offline == true) {
calledGetOffline += 1;
}
else {
} else {
calledOnline += 1;
}
}
......
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