mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Clarify output of flutter create (#6305)
Previously it implied that you had to always say lib/main.dart in the "flutter run" command.
This commit is contained in:
parent
c5a25fcbf5
commit
71e05ff8f2
@ -123,7 +123,9 @@ class CreateCommand extends FlutterCommand {
|
|||||||
All done! In order to run your application, type:
|
All done! In order to run your application, type:
|
||||||
|
|
||||||
\$ cd $relativePath
|
\$ cd $relativePath
|
||||||
\$ flutter run lib/main.dart
|
\$ flutter run
|
||||||
|
|
||||||
|
Your main program file is lib/main.dart in the $relativePath directory.
|
||||||
''');
|
''');
|
||||||
} else {
|
} else {
|
||||||
printStatus("You'll need to install additional components before you can run "
|
printStatus("You'll need to install additional components before you can run "
|
||||||
@ -135,8 +137,9 @@ All done! In order to run your application, type:
|
|||||||
printStatus('');
|
printStatus('');
|
||||||
printStatus("After installing components, run 'flutter doctor' in order to "
|
printStatus("After installing components, run 'flutter doctor' in order to "
|
||||||
"re-validate your setup.");
|
"re-validate your setup.");
|
||||||
printStatus("When complete, type 'flutter run lib/main.dart' from the '$relativePath' "
|
printStatus("When complete, type 'flutter run' from the '$relativePath' "
|
||||||
"directory in order to launch your app.");
|
"directory in order to launch your app.");
|
||||||
|
printStatus("Your main program file is: $relativePath/lib/main.dart");
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user