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

Hit test always returns false #10

Open
ndelanou opened this issue Aug 2, 2023 · 1 comment
Open

Hit test always returns false #10

ndelanou opened this issue Aug 2, 2023 · 1 comment

Comments

@ndelanou
Copy link

ndelanou commented Aug 2, 2023

When wrapping the OverflowView into a GestureDetector, the onTap callback is never called when tapping on the widget.

GestureDetector(
  onTap: () => print('Hit !'), // Never called
  child: OverflowView.flexible(
    children: [Text('A'), Text('B'), Text('C')],
    builder: (context, remaining) => Text('+$remaining'),
  ),
),

I'm using Flutter (Channel beta, 3.13.0-0.2.pre) but I'm unsure it makes any difference

@ndelanou
Copy link
Author

My current fix is to change this line by:

return true;

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

No branches or pull requests

1 participant