Repository navigation
[material_ui] Fix todayBorder color being overridden by todayForegroundColor in YearPicker - #12697
Conversation
There was a problem hiding this comment.
Code Review
This pull request ensures that DatePickerThemeData.todayBorder is respected over todayForegroundColor in the year selector of the date picker. It updates the border color logic in _YearPickerState, updates the documentation, and adds corresponding regression tests. Feedback on the tests suggests correcting a test description that incorrectly references todayBackgroundColor instead of todayForegroundColor.
todayBorder color being overridden by todayForegroundColor in YearPicker"todayBorder color being overridden by todayForegroundColor in YearPicker
|
Thank you for your contribution! Because of the volume of PRs we receive, we require that new contributors use our checklist to guide them through critical steps in creating a Flutter PR. This PR's description is missing that checklist, so it is being marked as a Draft. Please edit the PR description to add the checklist, then ensure that you have completed all of the steps. Once you've done that, please mark the PR as ready for review. If you need help, consider asking for advice on the #hackers-new channel on Discord. |
|
It's done, @QuncCccccc please check. |
There was a problem hiding this comment.
Code Review
This pull request ensures that DatePickerThemeData.todayBorder is respected in the year selector of the date picker, preventing it from being overridden by the foreground color when a custom border color is defined. It also updates the documentation and adds regression tests. The review feedback points out a mismatch in a test name, which incorrectly references todayBackgroundColor instead of todayForegroundColor.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
QuncCccccc
left a comment
There was a problem hiding this comment.
LGTM! Thank you for porting over the fix!
|
@dkwingsmt Any thoughts on this PR ? |
…r#192809) flutter/packages@9caa77c...bebbb57 2026-09-15 5684363+tenninebt@users.noreply.github.com [google_maps_flutter_platform_interface] Add onPointOfInterestTap support (flutter/packages#12752) 2026-09-14 stuartmorgan@google.com [google_maps_flutter] Adopts new async/await Swift Pigeon support (flutter/packages#12860) 2026-09-14 109692895+Massinissa-Mouhoub@users.noreply.github.com [material_ui] Fix `todayBorder` color being overridden by `todayForegroundColor` in `YearPicker` (flutter/packages#12697) 2026-09-13 engine-flutter-autoroll@skia.org Roll Flutter from 2553f89 to 8b3e8f5 (4 revisions) (flutter/packages#12856) 2026-09-12 stuartmorgan@google.com [google_maps_flutter] Convert remaining code to Swift (flutter/packages#12768) 2026-09-12 engine-flutter-autoroll@skia.org Roll Flutter from 63b9518 to 2553f89 (62 revisions) (flutter/packages#12855) 2026-09-12 engine-flutter-autoroll@skia.org Roll Flutter (stable) from d3b14c8 to 9584c67 (15 revisions) (flutter/packages#12854) 2026-09-12 36861262+QuncCccccc@users.noreply.github.com [material_ui] Update gen_defaults color helper (flutter/packages#12846) 2026-09-11 brunocorona.alcantar@gmail.com [material_ui] Port flutter/flutter flutter#185475 "Accessibility: Add semanticLabel to MenuAnchor" (flutter/packages#12806) 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 flutter-ecosystem@google.com 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
This PR ports flutter/flutter#189345 from flutter/flutter to flutter/packages, as part of flutter/flutter#188444.
Fixes flutter/flutter#189298
Pre-Review Checklist
[shared_preferences]///).