Box too big (#3884)
* shrink analytics message to < 80 chars * catch line ending
This commit is contained in:
parent
40c0d6ea12
commit
20897c3f66
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user