Skip to content

[material_ui] Migrate M3 BottomAppBar template to use new gen_defaults#12222

Open
elliette wants to merge 4 commits into
flutter:m3e_migrationfrom
elliette:bottom-app-bar-migration
Open

[material_ui] Migrate M3 BottomAppBar template to use new gen_defaults#12222
elliette wants to merge 4 commits into
flutter:m3e_migrationfrom
elliette:bottom-app-bar-migration

Conversation

@elliette

Copy link
Copy Markdown
Member

Work towards flutter/flutter#187899
Fixes flutter/flutter#188403

Pre-Review Checklist

Test exemption: Template migration PR.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

[test exemption]: https://github.com/flutter/flutter/blob/master/docs/contributing/Tree-hygiene.md#tests*Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.*

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Jul 16, 2026
@github-actions github-actions Bot added triage-framework Should be looked at in framework triage p: material_ui labels Jul 16, 2026
@elliette
elliette requested a review from QuncCccccc July 16, 2026 21:42

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

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.

Code Review

This pull request refactors the generation of Material 3 defaults for the Bottom App Bar. It removes the inline _BottomAppBarDefaultsM3 class from bottom_app_bar.dart and replaces it with a generated part file (bottom_app_bar_defaults_m3.g.dart). Additionally, it introduces a new BottomAppBarTemplateM3 template class to handle the code generation and integrates it into the gen_defaults.dart tool, while removing the legacy BottomAppBarTemplate class. There are no review comments, and I have no feedback to provide.

@elliette elliette changed the title [material_ui] Migrate M3 BottomAppBar template to use new gen_defaults [material_ui] Migrate M3 BottomAppBar template to use new gen_defaults Jul 16, 2026

@QuncCccccc QuncCccccc left a comment

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.

LGTM!

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

Labels

CICD Run CI/CD p: material_ui triage-framework Should be looked at in framework triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants