Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateTimePickerFormField overflow on small screens #24

Closed
georgeherby opened this issue Jan 31, 2019 · 4 comments
Closed

DateTimePickerFormField overflow on small screens #24

georgeherby opened this issue Jan 31, 2019 · 4 comments

Comments

@georgeherby
Copy link

I am currently running this on a small screen as I am running integration tests on their CI and it's running on an emulator with a small screen (size not confirmed) so I thought I would pick a small screen for a local emulator and then ran the tests and I got the issues with the DateTimePickerFormField. See image of it running on 4 WVGA (Nexus S) API 28 emulator

DateTimePickerFormField(
                  editable: false,
                  key: Key("deadline-selector"),
                  validator: (field) {
                    if (field == _createJobController.startDate || field == null) {
                      return "You must enter a future project deadline";
                    } else {
                      return null;
                    }
                  },
                  decoration: InputDecoration(hintText: "Tap to enter project deadline"),
                  initialDate: _createJobController.startDate,
                  firstDate: _createJobController.startDate.add(Duration(days: -1)),
                  dateOnly: true,
                  format: DateFormat("d MMMM yyyy"),
                  onSaved: (newDate) => _createJobController.deadline = newDate)

screenshot_1548944703

@georgeherby georgeherby changed the title Bottom Overflow on small screens DateTimePickerFormField overflow on small screens Jan 31, 2019
@nebnhoj
Copy link

nebnhoj commented Feb 14, 2019

Same Issue with me even though I'm using 6" phone

@jifalops
Copy link
Owner

This appears to be a platform issue flutter/flutter#21383.

You may want to check if showDatePicker() does this without this widget.

@tinoper
Copy link

tinoper commented Jun 29, 2019

This appears to be a platform issue flutter/flutter#21383.

You may want to check if showDatePicker() does this without this widget.
If it helps,I did check with showDatePicker and keyboard doesn't popup. Let me know if you need to test something else.

@jifalops
Copy link
Owner

Closing due to it being fixed upstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants