deakjahn / crop_image

An image cropper widget. Supports mobile, web and desktop.
https://pub.dev/packages/crop_image
MIT License
55 stars 29 forks source link

The cropper don't work on mobile and tablet web #41

Open YawarOsman opened 9 months ago

YawarOsman commented 9 months ago

I have used the cropper for my web application but when i open it with mobile and try to crop and image it will show a white image, i'm using the latest version crop_image: ^1.0.11 at the moment.

i'm using this code:

final bitmap = await controller.croppedBitmap();
await bitmap.toByteData()

Flutter Doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.9, on macOS 11.7.10 20G1427 darwin-x64, locale en)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[!] Xcode - develop for iOS and macOS (Xcode 13.0)
    ✗ Flutter requires Xcode 14 or higher.
      Download the latest version or update via the Mac App Store.
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] VS Code (version 1.83.1)
[✓] Connected device (2 available)
[✓] Network resources

! Doctor found issues in 2 categories.
moradiyajay commented 5 months ago

Facing same issue

deakjahn commented 5 months ago

Any chance you use the old HTML renderer instead of the newer CanvasKit?