Skip to content

Fix(Material): DateRangePicker ignores DatePickerTheme.dayShape#181658

Merged
auto-submit[bot] merged 7 commits intoflutter:masterfrom
akhil-ge0rge:fix-range-picker-shape
Feb 18, 2026
Merged

Fix(Material): DateRangePicker ignores DatePickerTheme.dayShape#181658
auto-submit[bot] merged 7 commits intoflutter:masterfrom
akhil-ge0rge:fix-range-picker-shape

Conversation

@akhil-ge0rge
Copy link
Copy Markdown
Contributor

@akhil-ge0rge akhil-ge0rge commented Jan 29, 2026

This change fixes a problem where showDateRangePicker ignored the dayShape property in DatePickerThemeData, leading to days always rendering as circles regardless of the theme. This was caused by the internal _DayItem widget using a hardcoded BoxDecoration regardless of the theme configuration.

Fixes #181500

Before After

Pre-launch Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I signed the [CLA].
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is [test-exempt].
  • I followed the [breaking change policy] and added [Data Driven Fixes] where supported.
  • All existing and new tests are passing.

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

Labels

f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dayShape resolve from theme's dayShape is missing in _DayItem used in DateRangePicker

4 participants