Skip to content

Custom (non gregorian) calendar in showDatePicker  #77531

@yringler

Description

@yringler

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!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: internationalizationSupporting other languages or locales. (aka i18n)c: proposalA detailed proposal for a change to Flutterdependency: dartDart team may need to help usf: date/time pickerDate or time picker widgetsf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions