Explicitly call out documentation links in "flutter create" (#114181)
The recent survey suggests that some people are not finding documentation after they get started with Flutter, so let's just give them links right away. It might not help everyone but there's not really any downside so...
This commit is contained in:
@@ -164,17 +164,23 @@ void main() {
|
||||
'lib/main.dart',
|
||||
],
|
||||
);
|
||||
expect(logger.statusText, contains('In order to run your application, type:'));
|
||||
// check that we're telling them about documentation
|
||||
expect(logger.statusText, contains('https://docs.flutter.dev/'));
|
||||
expect(logger.statusText, contains('https://api.flutter.dev/'));
|
||||
// check that the tests run clean
|
||||
return _runFlutterTest(projectDir);
|
||||
}, overrides: <Type, Generator>{
|
||||
Pub: () => Pub(
|
||||
fileSystem: globals.fs,
|
||||
logger: globals.logger,
|
||||
logger: logger,
|
||||
processManager: globals.processManager,
|
||||
usage: globals.flutterUsage,
|
||||
botDetector: globals.botDetector,
|
||||
platform: globals.platform,
|
||||
stdio: mockStdio,
|
||||
),
|
||||
Logger: () => logger,
|
||||
});
|
||||
|
||||
testUsingContext('can create a skeleton (list/detail) app', () async {
|
||||
@@ -597,7 +603,7 @@ void main() {
|
||||
platform: globals.platform,
|
||||
stdio: mockStdio,
|
||||
),
|
||||
Logger: ()=>logger,
|
||||
Logger: () => logger,
|
||||
});
|
||||
|
||||
testUsingContext('plugin example app depends on plugin', () async {
|
||||
|
||||
Reference in New Issue
Block a user