Skip to content

ScrollablePositionedList: Gesture detector to dismiss keyboard is not working #87

Open
@darwin-morocho

Description

@darwin-morocho

On IOS devices we don't have back button to dismiss the keyboar so I that cases I use onTap event in GestureDector to dismiss the keyboard.

GestureDetector works fine with ListView but with scrollable_positioned_list is not working

Activity

changed the title [-]Gesture detector to dismiss keyboard is not working[/-] [+]ScrollablePositionedList: Gesture detector to dismiss keyboard is not working[/+] on Apr 16, 2020
jamesderlin

jamesderlin commented on Apr 16, 2020

@jamesderlin
Collaborator

It would help a lot if you could provide sample code (ideally a test) that can reproduce the problem. Thanks!

tarobins

tarobins commented on Apr 29, 2020

@tarobins
Collaborator

+1 to what @jamesderlin said, but I will try to repo. In this case, I think I understand sufficiently to make an attempt at repoing.

AxesandGrinds

AxesandGrinds commented on Jun 20, 2020

@AxesandGrinds

Just try a GestureDetector in scrollable_positioned_list and you'll see that it's not working. Something in the package is blocking the children's gesture detector from firing. once in a while, ontap works but rarely, but onLongPress never works.

AxesandGrinds

AxesandGrinds commented on Jun 21, 2020

@AxesandGrinds

I found out the my problem was using a UniqueKey() with my stateful widget that made it unable to detect gesturedetector regularly. But the time I figured it out, I had already switch my code to use a Listview.Builder instead SrollablePositionedList so I'm not sure if the issue is specifically tied to your package as well.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      ScrollablePositionedList: Gesture detector to dismiss keyboard is not working · Issue #87 · google/flutter.widgets