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

App crashes when zoom is pinched to maximum as a child of ColorFiltered widget #525

Open
pabloasenjo3 opened this issue Oct 5, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@pabloasenjo3
Copy link

pabloasenjo3 commented Oct 5, 2022

🐛 Bug Report

When this widget is used as a child of ColorFiltered widget, if users pinch zoom to the maximum agressively, the app starts lagging untilit crashes.

Expected behavior

Pinching zoom, even if it's done agressively, should not crash the app.

Reproduction steps

Try it here (on a mobile device) or just add this to any widget tree:

ColorFiltered(
colorFilter: const ColorFilter.matrix(
[
1, 0, 0, 0, 0,
0, 1, 0, 0, 0,
0, 0, 1, 0, 0,
0, 0, 0, 1, 0, // Example matrix
],
),
child: PhotoView(
imageProvider: const NetworkImage(imageUrl),
),
),

This PhotoView argument helps, but its not enough:

filterQuality: FilterQuality.none,

Platform: Android and iOS
Version: 0.14.0 (latest)

@pabloasenjo3 pabloasenjo3 added the bug Something isn't working label Oct 5, 2022
@pabloasenjo3 pabloasenjo3 changed the title App crashes when zoom is pinched to maximum App crashes when zoom is pinched to maximum as a child of ColorFiltered widget Jan 18, 2023
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

No branches or pull requests

1 participant