Repository navigation
Add tests for Material 3 Date pickers #126826
Copy link
Copy link
Labels
a: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsf: date/time pickerDate or time picker widgetsDate or time picker widgetsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packages
Description
Activity
- addeda: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packages
on May 15, 2023 - addedf: date/time pickerDate or time picker widgetsDate or time picker widgets
on May 15, 2023 - added a commit that references this issue
on May 23, 2023 - moved this from Done (PR merged) to In progress in Nevercode
on May 23, 2023 Date range picker tests are pending
- added a commit that references this issue
on May 24, 2023 - moved this from PR submitted to Done (PR merged) in Nevercode
on May 26, 2023 This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on Jun 9, 2023 - added a commit that references this issue
on Jun 12, 2026
Metadata
Metadata
Assignees
Labels
a: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsf: date/time pickerDate or time picker widgetsDate or time picker widgetsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packages
Type
Projects
- StatusShow more project fieldsDone (PR merged)
- StatusShow more project fields✅ Done
Is there an existing issue for this?
Steps to reproduce
While working on some other M3 date picker issues like #126597, I noticed the M3 layout and config changes made in #119033 aren't tested in
date_picker_test.dart.https://github.com/flutter/flutter/pull/119033/files#diff-198d5dd0fe89bb71e1940816baf20e7b57ee896ed31120b7c3fcebcc4ac3bfbe has a bunch of changes in
date_picker.dartand most of these changes aren't tested indate_picker_test.dart.Expected results
date_picker_test.darthas M3 test coverageActual results
Most of the M3 changes aren't tested and modifying some M3 defaults or removing M3-related widgets from

date_picker.testdoesn't fail tests in thedate_picker_test.dartclass.Code sample
~
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]Flutter Doctor output
Doctor output
[Paste your output here]