Skip to content

locale in DatePickerThemeData #148202

@Priyantha-Kingslake

Description

@Priyantha-Kingslake

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: internationalizationSupporting other languages or locales. (aka i18n)c: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: date/time pickerDate or time picker widgetsf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionteam-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