From 20897c3f66ddaf7256b018c0efd5fc6048f70e98 Mon Sep 17 00:00:00 2001 From: Seth Ladd Date: Fri, 13 May 2016 09:44:36 -0700 Subject: [PATCH] Box too big (#3884) * shrink analytics message to < 80 chars * catch line ending --- packages/flutter_tools/lib/src/usage.dart | 25 +++++++++-------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/packages/flutter_tools/lib/src/usage.dart b/packages/flutter_tools/lib/src/usage.dart index 440ce5e1f7..78a16a4dd3 100644 --- a/packages/flutter_tools/lib/src/usage.dart +++ b/packages/flutter_tools/lib/src/usage.dart @@ -93,23 +93,18 @@ class Usage { return; _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(''' - ╔════════════════════════════════════════════════════════════════════════════════════════════════════╗ - ║$welcomeString║ - ║ ║ - ║ The Flutter tool anonymously reports feature usage statistics and basic crash reports to Google in ║ - ║ order to help Google contribute improvements to 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 ║ - ╚════════════════════════════════════════════════════════════════════════════════════════════════════╝ + ╔════════════════════════════════════════════════════════════════════════════╗ + ║ Welcome to Flutter! - https://flutter.io ║ + ║ ║ + ║ The Flutter tool anonymously reports feature usage statistics and basic ║ + ║ crash reports to Google in order to help Google contribute improvements to ║ + ║ 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. ║ + ╚════════════════════════════════════════════════════════════════════════════╝ ''', emphasis: true); } }