xclud / flutter_crop

Crop any widget/image in Android, iOS, Web and Desktop with fancy and customizable UI, in pure Dart code.
https://pub.dev/packages/crop
MIT License
259 stars 84 forks source link

Problem with transition in some cases #47

Closed michaldev closed 3 years ago

michaldev commented 3 years ago

I have problem with transitions when crop section has ratio aspect vertically (like 0.5625) and image is horizontally.

This video shows problem. https://vimeo.com/490743586

Code:

    final controller =
        useMemoized(() => CropController(aspectRatio: width / height));
Crop(
              controller: controller,
              shape: BoxShape.rectangle,
              child: Image.memory(
                bytesFile,
                fit: BoxFit.cover,
              ),
              helper: Container(
                decoration: BoxDecoration(
                  border: Border.all(color: Colors.white, width: 2),
                ),
              ),
            )
xclud commented 3 years ago

@michaldev This is a dup of #27. I am working on this issue.

mohamadhadibi commented 3 years ago

50