Skip to content

Allow changing of the keyboard type in DateRangePicker (similar to DatePicker) #121912

@ko16a46

Description

@ko16a46

Use case

We noticed the same issue as #62401 wherein dates cannot be typed in the input date range picker on some phones, because they don't include a slash ('/') in their date input keyboard.

67c15004-117f-46b4-921b-f8236aee65be

We were hoping to work around it similar to how the Android Material components team worked around it in their codebase. By showing the full keyboard on Samsung (and also LGE) devices as seen in material-components/material-components-android#682

However, the DateRangePickerDialog and showDateRangePicker don't have any options for keyboard type like the one added to DatePickerDialog and showDatePicker in #93439

Proposal

Add keyboardType as an optional parameter in DateRangePickerDialog and showDateRangePicker, so we can change the keyboard type ourselves as necessary.

Metadata

Metadata

Assignees

Labels

a: text inputEntering text in a text field or keyboard related problemsc: 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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions