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

[BUG]Using v2.0.0, when I pull on the picture, then click on the picture, an error is reported in flutter version 2.0.2! ! ! ! #691

Closed
cbahai opened this issue May 21, 2021 · 5 comments · Fixed by #695
Labels
bug Something isn't working

Comments

@cbahai
Copy link

cbahai commented May 21, 2021

════════ Exception caught by gesture library ═══════════════════════════════════════════════════════
The following assertion was thrown while dispatching a pointer event:
'package:flutter/src/gestures/tap.dart': Failed assertion: line 201 pos 14: '_down == null && _up == null': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=2_bug.md

When the exception was thrown, this was the stack:
#2 BaseTapGestureRecognizer.addAllowedPointer (package:flutter/src/gestures/tap.dart:201:14)
#3 GestureRecognizer.addPointer (package:flutter/src/gestures/recognizer.dart:102:7)
#4 RawGestureDetectorState._handlePointerDown (package:flutter/src/widgets/gesture_detector.dart:1204:18)
#5 RenderPointerListener.handleEvent (package:flutter/src/rendering/proxy_box.dart:2821:29)
#6 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:361:22)
...
Event: PointerDownEvent#10a69(position: Offset(188.0, 283.0))
position: Offset(188.0, 283.0)
Target: RenderPointerListener#159e2 relayoutBoundary=up28
parentData: (can use size)
constraints: BoxConstraints(0.0<=w<=359.0, 0.0<=h<=Infinity)
size: Size(359.0, 201.9)
behavior: deferToChild
listeners: down

@cbahai cbahai added the bug Something isn't working label May 21, 2021
@cbahai
Copy link
Author

cbahai commented May 21, 2021

AE517C51-BBD8-4999-BB67-E513E0791B20

In scroll view

@cbahai cbahai changed the title Using v2.0.0, when I pull on the picture, then click on the picture, an error is reported in flutter version 2.0.2! ! ! ![BUG] [BUG]Using v2.0.0, when I pull on the picture, then click on the picture, an error is reported in flutter version 2.0.2! ! ! ! May 21, 2021
@erickok
Copy link
Collaborator

erickok commented May 21, 2021

Might be a duplicate of #690 although I don't see any reference to flutter_html in the stacktrace?

@erickok
Copy link
Collaborator

erickok commented May 21, 2021

Could you please provide us with the actual stacktrace, the flutter_html version you are using, and ideally a reproducible example.

@tneotia
Copy link
Collaborator

tneotia commented May 21, 2021

This should have been fixed with #631, but that by itself opened #690. Need to find a better solution for gesture passthrough.

@jiangxiaoqiang
Copy link
Contributor

same problem, I encount this problem too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants