Skip to content

Commit 20897c3

Browse files
committed
Box too big (flutter#3884)
* shrink analytics message to < 80 chars * catch line ending
1 parent 40c0d6e commit 20897c3

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

packages/flutter_tools/lib/src/usage.dart

+10-15
Original file line numberDiff line numberDiff line change
@@ -93,23 +93,18 @@ class Usage {
9393
return;
9494
_printedUsage = true;
9595

96-
final String versionString = FlutterVersion.getVersionString(whitelistBranchName: true);
97-
98-
String welcomeString = 'Welcome to Flutter! - Flutter version $versionString - https://flutter.io';
99-
welcomeString = welcomeString.padLeft((welcomeString.length + 100) ~/ 2);
100-
welcomeString = welcomeString.padRight(100);
101-
10296
printStatus('');
10397
printStatus('''
104-
╔════════════════════════════════════════════════════════════════════════════════════════════════════╗
105-
║$welcomeString
106-
║ ║
107-
║ The Flutter tool anonymously reports feature usage statistics and basic crash reports to Google in ║
108-
║ order to help Google contribute improvements to Flutter over time. See Google's privacy policy: ║
109-
║ https://www.google.com/intl/en/policies/privacy/ ║
110-
║ ║
111-
║ Use "flutter config --no-analytics" to disable analytics reporting ║
112-
╚════════════════════════════════════════════════════════════════════════════════════════════════════╝
98+
╔════════════════════════════════════════════════════════════════════════════╗
99+
║ Welcome to Flutter! - https://flutter.io ║
100+
║ ║
101+
║ The Flutter tool anonymously reports feature usage statistics and basic ║
102+
║ crash reports to Google in order to help Google contribute improvements to ║
103+
║ Flutter over time. See Google's privacy policy: ║
104+
║ https://www.google.com/intl/en/policies/privacy/ ║
105+
║ ║
106+
║ Use "flutter config --no-analytics" to disable analytics reporting. ║
107+
╚════════════════════════════════════════════════════════════════════════════╝
113108
''', emphasis: true);
114109
}
115110
}

0 commit comments

Comments
 (0)