Skip to content

[material_ui] Migrate M3 DatePicker template to use new gen_defaults - #12914

Merged
auto-submit[bot] merged 3 commits into
flutter:mainfrom
QuncCccccc:date_picker_m3_defaults_migration
Sep 30, 2026
Merged

auto-submit[bot] merged 3 commits into
flutter:mainfrom
QuncCccccc:date_picker_m3_defaults_migration

Conversation

@QuncCccccc

Copy link
Copy Markdown
Contributor

Work toward flutter/flutter#187899.
Fixes flutter/flutter#188410.

Migrates the M3 DatePicker defaults template to the new packages/material_ui/tool/gen_defaults generator.

Pre-Review Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [AI contribution guidelines] and understand my responsibilities, or I am not using AI tools.
  • I read the [Tree Hygiene] page, which explains my responsibilities.
  • I read and followed the [relevant style guides] and ran [the auto-formatter].
  • I signed the [CLA].
  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • I [linked to at least one issue that this PR fixes] in the description above.
  • I followed [the version and CHANGELOG instructions], using [semantic versioning] and the [repository CHANGELOG style], or I have commented below to indicate which documented exception this PR falls under[^1].
  • I updated/added any relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or I have commented below to indicate which [test exemption] this PR falls under[^1].
  • All existing and new tests are passing.

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Sep 18, 2026
@github-actions github-actions Bot added p: material_ui triage-design Should be looked at in design triage labels Sep 18, 2026
@QuncCccccc QuncCccccc added override: no versioning needed Override the check requiring version bumps for most changes override: no changelog needed Override the check requiring CHANGELOG updates for most changes labels Sep 18, 2026

@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 migrates the Material 3 DatePicker defaults to the new token-based generator template (DatePickerTemplateM3), replacing the old template and moving the generated defaults into a separate part file. The generator script and tests have been updated to enable and verify this generation. Review feedback suggests replacing a hardcoded opacity value of 0.60 in the template with a token to improve consistency.

Comment thread packages/material_ui/tool/gen_defaults/templates/date_picker_template.dart Outdated
@QuncCccccc
QuncCccccc requested a review from elliette September 25, 2026 21:57
@QuncCccccc QuncCccccc added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 30, 2026
@auto-submit
auto-submit Bot merged commit af73549 into flutter:main Sep 30, 2026
13 checks passed
Istiak-Ahmed78 pushed a commit to Istiak-Ahmed78/flutter that referenced this pull request Sep 30, 2026
…er#193578)

flutter/packages@3c6ce59...0ba9a82

2026-09-30 [email protected] [image_picker_ios] PR 1/5 Add
injectable protocol seams and migrate leaf native tests to Swift Testing
(flutter/packages#12897)
2026-09-30 [email protected] [material_ui]
Migrate M3 Dialog template to use new gen_defaults
(flutter/packages#12917)
2026-09-30 [email protected] [material_ui]
Migrate M3 FAB template to use new gen_defaults (flutter/packages#12921)
2026-09-30 [email protected] [material_ui]
Migrate M3 DatePicker template to use new gen_defaults
(flutter/packages#12914)
2026-09-29 [email protected] [material_ui] Document that
TextField.decoration is merged with InputDecorationTheme
(flutter/packages#12493)
2026-09-29 [email protected] [camera_android_camerax] Move
misplaced Javadoc above annotations (flutter/packages#13040)
2026-09-29 [email protected] [vector_graphics] Remove
unnecessary Material imports (flutter/packages#12798)
2026-09-29 [email protected] Roll Flutter from
c5a061b to 55b8f88 (8 revisions) (flutter/packages#13066)
2026-09-29 [email protected] [webview_flutter_wkwebview]
Regenerate with pigeon 29.0.4 (flutter/packages#12923)
2026-09-29 [email protected] [url_launcher] Convert unit tests to
Kotlin (flutter/packages#13018)
2026-09-29 [email protected] [material_ui, cupertino_ui] Fix unresolved
doc comment references (flutter/packages#13044)

If this roll has caused a breakage, revert this CL and set the roller
to dry run mode using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App CICD Run CI/CD override: no changelog needed Override the check requiring CHANGELOG updates for most changes override: no versioning needed Override the check requiring version bumps for most changes p: material_ui triage-design Should be looked at in design triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

date_picker_template.dart

2 participants