bluefireteam / photo_view

📸 Easy to use yet very customizable zoomable image widget for Flutter, Photo View provides a gesture sensitive zoomable widget. Photo View is largely used to show interacive images and other stuff such as SVG.
MIT License
1.91k stars 547 forks source link

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

Open pabloasenjo3 opened 2 years ago

pabloasenjo3 commented 2 years ago

🐛 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)