Skip to content

showDatePicker has date format issues when DatePickerEntryMode.input is selected #62401

@figengungor

Description

@figengungor

Steps to Reproduce

20200728_141801

  1. Call showDatePicker method and choose edit mode in dialog. (Tested with 'tr' locale)
  2. Try to change the TextField manually. It changes from dot(.) format to slashes(/). Then when you enter, you get invalid format error. If you delete them all, then you can only enter digits because you don't have control over keyboard.

Expected results:
What I expect from this feature(DatePickerEntryMode.input) is to be able to disable/enable it. If I can't disable it, I want to control it. I want to be able to specify date format, control keyboard etc.

Actual results:
As specified at step 2, when you try to change the TextField manually, It changes from dot(.) format to slashes(/). Then when you enter, you get invalid format error. If you delete them all, then you can only enter digits because you don't have control over keyboard.

Logs
[✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.5 19F101, locale en-TR)
    • Flutter version 1.17.5 at /Users/figengungor/Documents/development/flutter
    • Framework revision 8af6b2f038 (4 weeks ago), 2020-06-30 12:53:55 -0700
    • Engine revision ee76268252
    • Dart version 2.8.4

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/figengungor/Library/Android/sdk
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.8.4

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemscustomer: crowdAffects or could affect many people, though not necessarily a specific customer.f: date/time pickerDate or time picker widgetsf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.team-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