photo_view icon indicating copy to clipboard operation
photo_view copied to clipboard

[BUG] Rotation of image not working in Web

Open beriaanirudh opened this issue 3 years ago • 0 comments

Describe the bug On web-browser (Chrome and Firefox ), PhotoView does not rotate image. The same code deployed on an android does rotate when twisted using 2 fingers.

To Reproduce

return PhotoView(
        backgroundDecoration: BoxDecoration(
            color: Colors.transparent),
        imageProvider: CachedNetworkImageProvider(
            "http://localhost:8082/web/assets/images/logo.png"), // please use any network image which does not FAIL CORS
        enableRotation: true,
      );

Expected behavior When mouse is dragged (clicked and moved) over the image, it should rotate.

Screenshots Not needed.

Which versions of Flutter/Photo View, and which browser / OS are affected by this issue? Did this work in previous versions of Photo View?

Flutter 2.5.3 _ channel stable _ https://github.com/flutter/flutter.git
Framework _ revision 18116933e7 (3 months ago) _ 2021-10-15 10:46:35 -0700
Engine _ revision d3ea636dc5
Tools _ Dart 2.14.4
  photo_view: ^0.13.0

beriaanirudh avatar Jan 09 '22 06:01 beriaanirudh