Skip to content

Have TextInputType.datetime use UIKeyboardType.numbersAndPunctuation on iOS #41508

@darrenaustin

Description

@darrenaustin

We are implementing the new text input date picker for Material design which just uses a text input field for the user to enter the date. We set the keyboardType parameter on the TextField to TextInputType.datetime to bring up a keyboard appropriate for entering a date. On Android this works well. On iOS however, it just brings up the default keyboard. This works, but it requires the user to switch to numeric mode on the default keyboard to enter the date.

From the iOS docs, it looks like they support a default keyboard that comes up in numeric mode: UIKeyboardType.numbersAndPunctuation. Can we switch the Flutter implementation of TextInputType.datetime to use this on iOS? This would seem to be a closer match and give the user a better experience.

Metadata

Metadata

Labels

a: text inputEntering text in a text field or keyboard related problemsengineflutter/engine related. See also e: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions