flutter_image_cropper icon indicating copy to clipboard operation
flutter_image_cropper copied to clipboard

web version style.height and style.width warnings

Open c-seeger opened this issue 2 years ago • 4 comments

Currently i get the following warnings within the web browser console

main.dart.js:43288 Height of Platform View type: [croppie-view-1653050635573] may not be set. Defaulting to `height: 100%`.
Set `style.height` to any appropriate value to stop this message.

main.dart.js:43288 Width of Platform View type: [croppie-view-1653050635573] may not be set. Defaulting to `width: 100%`.
Set `style.width` to any appropriate value to stop this message.

any way to fix this?

c-seeger avatar May 20 '22 12:05 c-seeger

@c-seeger Did you find a fix for this? Currently seeing the same with image_cropper 3.0.1

bastulli avatar Feb 16 '23 02:02 bastulli

Any new news ?

iliyami avatar May 10 '23 12:05 iliyami

Me too. How to solve it?

davidCcD avatar May 25 '23 10:05 davidCcD

Same problem here. I don't believe this can be resolved on our end. It sounds like something is unsupported in flutter, as the cropper is using webviews coming from a javascript library (considering the script tags required).

Until there is a fix, it would be unsafe/unwise to use this on flutter web. One of the next releases will not allow the scripts to work. I also noted that some others are already facing issues in released versions.

St4rweaver avatar Nov 05 '23 18:11 St4rweaver