Skip to content

Conversation

@justinmc
Copy link
Contributor

Adds keyboardType parameter to DateRangePicker.

Fixes #121912.

@justinmc justinmc self-assigned this Mar 10, 2023
@flutter-dashboard flutter-dashboard bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Mar 10, 2023
@justinmc justinmc force-pushed the date-range-picker-keyboard branch from b6f2ef0 to ec3a95a Compare March 10, 2023 01:04
@justinmc justinmc marked this pull request as ready for review March 10, 2023 18:14
Copy link
Contributor

@Renzo-Olivares Renzo-Olivares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though I wonder if we want to limit the set of TextInputType that DateRangePicker supports. Is there any TextInputType that doesn't make sense in the context of DateRangePicker?

@justinmc
Copy link
Contributor Author

@Renzo-Olivares Good point, it would be weird to use the emailAddress keyboard type in a date picker... The original DatePicker class doesn't limit it though. I can't say we should necessarily stop someone if they explicitly set it to something weird. I wouldn't be surprised if there are some edge cases where setting the keyboard to a non-date-related keyboard type makes sense.

If you have a specific idea let me know though.

@justinmc
Copy link
Contributor Author

justinmc commented Mar 15, 2023

Google testing appears stuck for the last several days, but it shouldn't be a problem. Merging.

@justinmc justinmc merged commit ffed0d5 into flutter:master Mar 15, 2023
@justinmc justinmc deleted the date-range-picker-keyboard branch March 15, 2023 18:34
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 16, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 16, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 16, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 16, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 16, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants