Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Respect calendarDelegate in showDateRangePicker and make CalendarDateRangePicker public #168290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

sarbagyastha
Copy link
Contributor

@sarbagyastha sarbagyastha commented May 4, 2025

This PR fixes an issue where the calendarDelegate parameter was not respected by showDateRangePicker. Although support forcalendarDelegate was added in PR #161874, it was inadvertently omitted from showDateRangePicker, causing inconsistencies in behavior compared to showDatePicker.

Also, to align with the existing public CalendarDatePicker class, CalendarDateRangePicker has been made public. This ensures consistency in API surface and allows users to build custom range pickers with full access to the base widget.

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.

@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. labels May 4, 2025
@sarbagyastha sarbagyastha changed the title Respect calendarDelegate in showDateRangePicker (missed in #161874) Respect calendarDelegate in showDateRangePicker May 4, 2025
@sarbagyastha sarbagyastha changed the title Respect calendarDelegate in showDateRangePicker Respect calendarDelegate in showDateRangePicker and make CalendarDateRangePicker public May 4, 2025
@sarbagyastha sarbagyastha changed the title Respect calendarDelegate in showDateRangePicker and make CalendarDateRangePicker public Respect calendarDelegate in showDateRangePicker and make CalendarDateRangePicker public May 4, 2025
@sarbagyastha sarbagyastha changed the base branch from main to master May 4, 2025 13:26
@flutter-dashboard
Copy link

Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change).

If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review.

For more guidance, visit Writing a golden file test for package:flutter.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Changes reported for pull request #168290 at sha 4ce5a7e

@flutter-dashboard flutter-dashboard bot added the will affect goldens Changes to golden files label May 4, 2025
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. will affect goldens Changes to golden files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant