-
Notifications
You must be signed in to change notification settings - Fork 30.4k
Custom (non gregorian) calendar in showDatePicker #77531
Copy link
Copy link
Closed
Labels
a: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)c: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterdependency: dartDart team may need to help usDart team may need to help usf: date/time pickerDate or time picker widgetsDate or time picker widgetsf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Metadata
Metadata
Assignees
Labels
a: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)c: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterdependency: dartDart team may need to help usDart team may need to help usf: date/time pickerDate or time picker widgetsDate or time picker widgetsf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Use case
There are many calendar systems besides for common Gregorian. For example, there is the Jewish Calendar, which is a lunar calendar, but extra months are added (according to a fixed mathematical system) to make it more or less end up matching the solar calendar.
I would like to allow users to select a date on the Jewish calendar, which is easier for users because the holidays are according to that calendar.
It would be great if the date picker wasn't hard coded to use gregorian, and could be configured to use other calendar systems.
Proposal
I am by no means a calendar expert. For inspiration, angular material date picker has been calendar agnostic for some time now.
In C#, the one and only John Skeet supports many calendars in noda time
Perhaps is this something which should be handled in dart first?
This looks like a good rundown of how the Jewish calendar is calculated, but really my intent with this issue is more about the general methods by which support could be added for any calendar system, not so much that support for a particular calendar system be added (although that would be great!)