Skip to content
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

locale in DatePickerThemeData #148202

Open
Priyantha-Kingslake opened this issue May 13, 2024 · 0 comments · May be fixed by #148292
Open

locale in DatePickerThemeData #148202

Priyantha-Kingslake opened this issue May 13, 2024 · 0 comments · May be fixed by #148292
Labels
a: internationalization Supporting other languages or locales. (aka i18n) c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter f: date/time picker Date or time picker widgets f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. P3 Issues that are less important to the Flutter project team-design Owned by Design Languages team triaged-design Triaged by Design Languages team waiting for PR to land (fixed) A fix is in flight

Comments

@Priyantha-Kingslake
Copy link

Use case

when using showDatePicker we have the option to set locale

showDatePicker(
  locale: Locale('en'),
  ...

But when we have multiple of this widget across our app setting this locale individually is cumbersome and feels against best practices.
We do have a class to set the global theme DatePickerThemeData, but this class does not support locale.

Proposal

Include locale property in DatePickerThemeData so that we may globaly set the locale for showDatePicker.

@danagbemava-nc danagbemava-nc added in triage Presently being triaged by the triage team framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. f: date/time picker Date or time picker widgets a: internationalization Supporting other languages or locales. (aka i18n) c: proposal A detailed proposal for a change to Flutter team-design Owned by Design Languages team and removed in triage Presently being triaged by the triage team labels May 13, 2024
@MajdSallora MajdSallora linked a pull request May 14, 2024 that will close this issue
9 tasks
@Piinks Piinks added waiting for PR to land (fixed) A fix is in flight triaged-design Triaged by Design Languages team P3 Issues that are less important to the Flutter project c: new feature Nothing broken; request for a new capability labels May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: internationalization Supporting other languages or locales. (aka i18n) c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter f: date/time picker Date or time picker widgets f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. P3 Issues that are less important to the Flutter project team-design Owned by Design Languages team triaged-design Triaged by Design Languages team waiting for PR to land (fixed) A fix is in flight
Projects
None yet
3 participants