Skip to content

Layout shorthand cleanup#13334

Open
lamek wants to merge 1 commit intoflutter:mainfrom
lamek:layout-shorthand-cleanup
Open

Layout shorthand cleanup#13334
lamek wants to merge 1 commit intoflutter:mainfrom
lamek:layout-shorthand-cleanup

Conversation

@lamek
Copy link
Copy Markdown
Contributor

@lamek lamek commented Apr 30, 2026

Updates the layout.md page to fix #12651.

@lamek lamek requested review from a team and sfshaza2 as code owners April 30, 2026 03:13
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 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.

Comment thread src/content/learn/pathway/tutorial/devtools.md Outdated
Comment thread src/content/learn/pathway/tutorial/layout.md Outdated
@lamek lamek force-pushed the layout-shorthand-cleanup branch from 0412cac to deec56b Compare April 30, 2026 03:15
@flutter-website-bot
Copy link
Copy Markdown
Collaborator

flutter-website-bot commented Apr 30, 2026

Visit the preview URL for this PR (updated for commit e39dc97):

https://flutter-docs-prod--pr13334-layout-shorthand-cleanup-aubds87p.web.app

Copy link
Copy Markdown
Contributor

@conooi conooi left a comment

Choose a reason for hiding this comment

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

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][].
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.

Please reformat using semantic line breaks :D

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.

Add a mention of dot shorthands on the FWE layout page

3 participants