Commit 59dc909d authored by jonnyandrew's avatar jonnyandrew Committed by Jonah Williams

Include empty config in 'flutter config' output (#25094)

parent 95b34d7a
...@@ -50,10 +50,10 @@ class ConfigCommand extends FlutterCommand { ...@@ -50,10 +50,10 @@ class ConfigCommand extends FlutterCommand {
String values = config.keys.map<String>((String key) { String values = config.keys.map<String>((String key) {
return ' $key: ${config.getValue(key)}'; return ' $key: ${config.getValue(key)}';
}).join('\n'); }).join('\n');
if (values.isNotEmpty) if (values.isEmpty)
values = '\nSettings:\n$values\n\n'; values = ' No settings have been configured.';
return return
'$values' '\nSettings:\n$values\n\n'
'Analytics reporting is currently ${flutterUsage.enabled ? 'enabled' : 'disabled'}.'; 'Analytics reporting is currently ${flutterUsage.enabled ? 'enabled' : 'disabled'}.';
} }
......
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