flutter/examples/api/lib/material/date_picker
Sarbagya Dhaubanjar 6d6d7914f9
Added calendar delegate to support custom calendar systems (#161874)
Added `CalendarDelegate` class that supports plugging in custom calendar
logics other than Gregorian Calendar System.

Here is an example implementation for Nepali(Bikram Sambat) Calendar
System:
https://github.com/sarbagyastha/nepali_date_picker/blob/m3/lib/src/nepali_calendar_delegate.dart

Demo using the `NepaliDatePickerDelegate`:
https://date.sarbagyastha.com.np/

Fixes https://github.com/flutter/flutter/issues/77531,
https://github.com/flutter/flutter/issues/161873

## Pre-launch Checklist

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

---------

Co-authored-by: Tong Mu <dkwingsmt@users.noreply.github.com>
2025-03-08 02:41:17 +00:00
..
custom_calendar_date_picker.0.dart Added calendar delegate to support custom calendar systems (#161874) 2025-03-08 02:41:17 +00:00
date_picker_theme_day_shape.0.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
show_date_picker.0.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
show_date_picker.1.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
show_date_range_picker.0.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00