diff --git a/packages/flutter_tools/lib/src/commands/create.dart b/packages/flutter_tools/lib/src/commands/create.dart index fd6006fa5e..fc72baea88 100644 --- a/packages/flutter_tools/lib/src/commands/create.dart +++ b/packages/flutter_tools/lib/src/commands/create.dart @@ -434,7 +434,7 @@ class CreateCommand extends CreateBase { globals.printStatus('Wrote $generatedFileCount files.'); globals.printStatus('\nAll done!'); final String application = - '${emptyArgument ? 'empty' : ''}${sampleCode != null ? 'sample' : ''} application'; + '${emptyArgument ? 'empty ' : ''}${sampleCode != null ? 'sample ' : ''}application'; if (generatePackage) { final String relativeMainPath = globals.fs.path.normalize(globals.fs.path.join( relativeDirPath, @@ -476,6 +476,10 @@ class CreateCommand extends CreateBase { // Let them know a summary of the state of their tooling. globals.printStatus(''' +You can find general documentation for Flutter at: https://docs.flutter.dev/ +Detailed API documentation is available at: https://api.flutter.dev/ +If you prefer video documentation, consider: https://www.youtube.com/c/flutterdev + In order to run your $application, type: \$ cd $relativeAppPath diff --git a/packages/flutter_tools/test/commands.shard/permeable/create_test.dart b/packages/flutter_tools/test/commands.shard/permeable/create_test.dart index e12508ee7b..373cebd2a4 100644 --- a/packages/flutter_tools/test/commands.shard/permeable/create_test.dart +++ b/packages/flutter_tools/test/commands.shard/permeable/create_test.dart @@ -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: { 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 {