lykhonis / image_crop

A flutter plugin to crop image on iOS and Android.
Apache License 2.0
327 stars 200 forks source link

add: placeholderWidget parameter #97

Open LeGoffMael opened 1 year ago

LeGoffMael commented 1 year ago

also fixed an issue where switching image causes an exception (#85)

════════ Exception caught by image resource service ════════════════════════════
The following assertion was thrown by a synchronously-called image listener:
Cannot get size during build.

The size of this render object has not yet been determined because the framework is still in the process of building widgets, which means the render tree for this frame has not yet been determined. The size getter should only be called from paint callbacks or interaction event handlers (e.g. gesture callbacks).

example

here is a video showing how a thumbnail and a loader can be used as placeholder