How to change roundCropper programmatically? #511
-
|
Thanks for this package, it's awesome. How to add a button in CropRotateEditor to change roundCropper programmatically? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
Great to hear you like my package :) Unfortunately, it's currently not supported to do that. The rounded cropper needs to be initialized when the editor starts. However, I'll keep that feature in mind for future updates. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the quick reply. cropRotateEditor: CropRotateEditorConfigs(
initAspectRatio: 1,
enableRoundCropper: enableRoundCropper,
...setState(() {
enableRoundCropper = !enableRoundCropper;
cropRotateEditor.updateAspectRatio(1);
}); |
Beta Was this translation helpful? Give feedback.
Thanks for the quick reply.
I found a way with an internal flag calling updateAspectRatio to rebuild.