Closed JohannesKaufmann closed 5 years ago
Thanks, really appreciated! Check the latest version, it should be fixed.
Great, that was fast! Taps are now properly recognized and the warning is not appearing anymore.
But as soon as it's "expanded" and an item is tapped, it is jumping: The list is animated to a position further up and then animated back to the "expanded" position.
I have two detectors:
GestureDetector
wrapping the whole item.TapGestureRecognizer
inside a TextSpan. It it inside the GestureDetector
and only fills a small amount of space.What's weird is that when the TapGestureRecognizer
detects a onTap
the list is not jumping. It only happens with the GestureDetector
(it's probably due to it's size). And when the sheet is not fully expanded that jumping does not appear at all.
I can't reproduce the error, could you please share the skeleton of your widgets?
I just another look at my code. I still had a _controller.launchTo(AnimationState.half_expanded);
in the onTap
. Sorry that was my fault π.
So the bug is actually that launchTo
only works for animating upwards (collapsed -> half_expanded -> expanded). And not the other way around (for example collapsing it again). Sorry for wasting your time...
No problem π Thanks for your help!
I'm facing the same problem where taps are not always recognised by the GestureDetector
that's used inside a ListView.
I'm currently on: rubber: ^0.3.2
I'll prepare an example project so you can reproduce it ;)
Describe the bug I have a
ListView
with items similar to the scroll example (which is now working really great by the way π). Every item is wrapped in aGestureDetector
that is listening foronTap
.There are currently three problems:
onTap
is successfully called, the sheet jumps around.Expected behavior I expect that "normal" interactions like onTap are handled by the widgets inside of the modal.