Commit 20897c3f authored by Seth Ladd's avatar Seth Ladd

Box too big (#3884)

* shrink analytics message to < 80 chars

* catch line ending
parent 40c0d6ea
...@@ -93,23 +93,18 @@ class Usage { ...@@ -93,23 +93,18 @@ class Usage {
return; return;
_printedUsage = true; _printedUsage = true;
final String versionString = FlutterVersion.getVersionString(whitelistBranchName: true);
String welcomeString = 'Welcome to Flutter! - Flutter version $versionString - https://flutter.io';
welcomeString = welcomeString.padLeft((welcomeString.length + 100) ~/ 2);
welcomeString = welcomeString.padRight(100);
printStatus(''); printStatus('');
printStatus(''' printStatus('''
╔════════════════════════════════════════════════════════════════════════════════════════════════════╗ ╔════════════════════════════════════════════════════════════════════════════╗
$welcomeString ║ Welcome to Flutter! - https://flutter.io ║
║ ║ ║ ║
║ The Flutter tool anonymously reports feature usage statistics and basic crash reports to Google in ║ ║ The Flutter tool anonymously reports feature usage statistics and basic ║
║ order to help Google contribute improvements to Flutter over time. See Google's privacy policy: ║ crash reports to Google in order to help Google contribute improvements to ║
https://www.google.com/intl/en/policies/privacy/ ║ ║ Flutter over time. See Google's privacy policy:
https://www.google.com/intl/en/policies/privacy/ ║
Use "flutter config --no-analytics" to disable analytics reporting
╚════════════════════════════════════════════════════════════════════════════════════════════════════╝ Use "flutter config --no-analytics" to disable analytics reporting.
╚════════════════════════════════════════════════════════════════════════════╝
''', emphasis: true); ''', emphasis: true);
} }
} }
......
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