YoussefKababe / pinch_zoom_image

A widget that makes picture pinch zoom, then return back to initial size and position when released.
https://pub.dartlang.org/packages/pinch_zoom_image
ISC License
52 stars 53 forks source link

High resolution image zoom result in black screen #13

Open liushiqi9 opened 5 years ago

liushiqi9 commented 5 years ago

I am running the demo with one of my high resolution image. And I can see the image, even zoom it a little bit, but after I zoom it to certain ratio, it will black out, and when it zoom back, it will show the picture again. I think this is a bug.

Image: high_resolution

Code: `import 'package:flutter/material.dart'; import 'package:pinch_zoom_image/pinch_zoom_image.dart'; import 'package:cached_network_image/cached_network_image.dart'; import 'package:photo_view/photo_view.dart';

class PinchZoomImageDemo extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('Pinch Zoom Image Demo'), ), body: ListView( children: [ PinchZoomImage( image: CachedNetworkImage( imageUrl: web_url_of_my_image', ), zoomedBackgroundColor: Color.fromRGBO(240, 240, 240, 1.0), ), ], ), ); } }`