Layout shorthand cleanup#13334
Open
lamek wants to merge 1 commit intoflutter:mainfrom
Open
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the documentation for DevTools and layout tutorials. Specifically, it clarifies that DevTools writes property changes to disk and requires a hot reload, and it introduces Dart's dot shorthands syntax. Feedback was provided to ensure consistency with the summary card in the DevTools tutorial and to simplify redundant links in the layout tutorial's shorthand explanation.
0412cac to
deec56b
Compare
Collaborator
|
Visit the preview URL for this PR (updated for commit e39dc97): https://flutter-docs-prod--pr13334-layout-shorthand-cleanup-aubds87p.web.app |
deec56b to
e39dc97
Compare
1 task
conooi
approved these changes
Apr 30, 2026
Contributor
conooi
left a comment
There was a problem hiding this comment.
Just a minor change, but otherwise lgtm!
| Modify the `Scaffold` within your `MainApp` widget's `build` method: | ||
| Modify the `Scaffold` within your `MainApp` widget's `build` method. | ||
|
|
||
| Passing an enum or static property directly (like `Alignment.centerLeft`) can also be shortened using [Dart's dot shorthands][] syntax, which you can read more about on both the official Dart documentation and the [Flutter shorthands overview][]. |
Contributor
There was a problem hiding this comment.
Please reformat using semantic line breaks :D
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates the layout.md page to fix #12651.