[go: nahoru, domu]

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

TextField in ListView hides keyboard instantly on tap #10498

Closed
markentingh opened this issue Jun 5, 2017 · 8 comments
Closed

TextField in ListView hides keyboard instantly on tap #10498

markentingh opened this issue Jun 5, 2017 · 8 comments
Labels
framework flutter/packages/flutter repository. See also f: labels.

Comments

@markentingh
Copy link
markentingh commented Jun 5, 2017

I have a form within a scrollable ListView where I can generate new TextFields by clicking a button. After generating a few TextFields, I try to tap on one of them located about halfway down the screen. The Android keyboard appears and instantly disappears after tapping the TextField because the TextField is located behind the keyboard. Shouldn't the ListView auto-scroll the focused TextField into view instead, so that the keyboard doesn't disappear?

@AlexiCoard
Copy link

Maybe related to this : #10363

@markentingh
Copy link
Author
markentingh commented Jun 7, 2017

I forgot to mention, I am also using persistentFooterButtons, which is also blocking the view after the keyboard appears. Either way, the TextField does not scroll into view like I am use to seeing in other native apps for Android.

You may be correct, since I am getting similar errors when tapping on the textfield.

E/SpannableStringBuilder( 2505): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
W/IInputConnectionWrapper( 2505): getSelectedText on inactive InputConnection
W/IInputConnectionWrapper( 2505): requestCursorAnchorInfo on inactive InputConnection
W/IInputConnectionWrapper( 2505): getTextBeforeCursor on inactive InputConnection

@mit-mit mit-mit added the framework flutter/packages/flutter repository. See also f: labels. label Jun 9, 2017
@Hixie
Copy link
Contributor
Hixie commented Jun 19, 2017

This is basically the same bug as #105, #170, #172, #188.

@avmanpuria
Copy link

I too have faced the same issue wherein the keyboard disappears for textfields which are towards the bottom end of the screen. I changed the order of the fields and found that if the textfield is above the keyboard, the keyboard does not disappear.

Is there any fix or workaround available for this issue?

@szastavnyy
Copy link

hi. still an issue ? any planned fix ? thank you

@goderbauer
Copy link
Member

I believe this has been fixed a while ago. Please re-open with more details if you still see this.

@laszlo-galosi
Copy link
laszlo-galosi commented Jan 30, 2019

Hi this is happened to me with ListView and also SingleChildScrollView with Column for the last TextField child. However if I supplied a key
for the last field, the issue is not happening. Maybe it's related to #15719

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

No branches or pull requests

8 participants