Update instructions for importing game.dart#13249
Update instructions for importing game.dart#13249surfmuggle wants to merge 1 commit intoflutter:mainfrom
Conversation
Clarified instructions for importing game.dart in main.dart.
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
There was a problem hiding this comment.
Code Review
This pull request updates the widget fundamentals tutorial documentation to provide more detailed instructions for importing the game logic file into the main application. A review comment identifies a line exceeding the 80-character limit for semantic line breaks and suggests splitting it for better readability and style compliance.
| 1. Download the file below and save it | ||
| as `lib/game.dart` in your project directory. | ||
| 1. Import the file in your `lib/main.dart` file. | ||
| 1. Import the file in your `lib/main.dart` file. Open `lib/main.dart` and add this line `import 'game.dart';` after the first import. |
There was a problem hiding this comment.
This line exceeds the 80-character limit for semantic line breaks as specified in the PR checklist. Breaking the instruction into two lines improves readability and ensures adherence to the project's documentation standards.
| 1. Import the file in your `lib/main.dart` file. Open `lib/main.dart` and add this line `import 'game.dart';` after the first import. | |
| 1. Import the file in your `lib/main.dart` file. | |
| Open `lib/main.dart` and add `import 'game.dart';` after the first import. |
References
- Use semantic line breaks of 80 characters or fewer. (link)
Clarified instructions for importing game.dart in main.dart.
Presubmit checklist
of 80 characters or fewer.