Skip to content

Update instructions for importing game.dart#13249

Open
surfmuggle wants to merge 1 commit intoflutter:mainfrom
surfmuggle:patch-1
Open

Update instructions for importing game.dart#13249
surfmuggle wants to merge 1 commit intoflutter:mainfrom
surfmuggle:patch-1

Conversation

@surfmuggle
Copy link
Copy Markdown

@surfmuggle surfmuggle commented Apr 4, 2026

Clarified instructions for importing game.dart in main.dart.

  • why: For a beginner a command what to do is helpfull.
  • Issues fixed: Clearer instructions what has to be done

Presubmit checklist

  • If you are unwilling, or unable, to sign the CLA, even for a tiny, one-word PR, please file an issue instead of a PR.
  • If this PR is not meant to land until a future stable release, mark it as draft with an explanation.
  • This PR follows the Google Developer Documentation Style Guidelines—for example, it doesn't use i.e. or e.g., and it avoids I and we (first-person pronouns).
  • This PR uses semantic line breaks
    of 80 characters or fewer.

Clarified instructions for importing game.dart in main.dart.
@surfmuggle surfmuggle requested review from a team and sfshaza2 as code owners April 4, 2026 07:30
@google-cla
Copy link
Copy Markdown

google-cla bot commented Apr 4, 2026

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.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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.

Suggested change
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
  1. Use semantic line breaks of 80 characters or fewer. (link)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant