crop_your_image icon indicating copy to clipboard operation
crop_your_image copied to clipboard

Reset image,image area error

Open yy4556028 opened this issue 1 year ago • 3 comments

When CropWidget ‘s image changed,if prev ratio is not equals new,the CropWidget's area not change.

yy4556028 avatar Mar 31 '23 07:03 yy4556028

@yy4556028 Thank you for your feedback. Can you provide a minimum code to reproduce the issue?

chooyan-eng avatar Apr 20 '23 01:04 chooyan-eng

Container( height: 210, margin: 8.vPadding, child: Crop( image: _imageData, controller: _controller, onCropped: (image) { // do something with image data }, aspectRatio: 3 / 4, initialSize: 1, baseColor: Colors.white, maskColor: Colors.black45, progressIndicator: const CircularProgressIndicator(), radius: 0, cornerDotBuilder: (size, edgeAlignment) => const DotControl(color: Colors.grey), clipBehavior: Clip.none, interactive: true, fixCropRect: true), ),

改变_imageData后,如果图片比例和之前的不一样,就会出现可裁剪区域异常的问题,要么滑不到边缘,要么可以滑出边缘。

fox0830 avatar Jul 12 '24 12:07 fox0830

不仅如此,裁剪出来的结果还是第一张照片的裁剪结果,即使裁剪区域里显示的是第二张图片。

fox0830 avatar Jul 12 '24 12:07 fox0830