[Question] How can I update editor UI? #278
-
How can I update the editor's UI when modifying the image with a custom feature?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Before version /// final editorKey = GlobalKey<ProImageEditorState>();
await editorKey.currentState!.updateBackgroundImage(
EditorImage(
networkUrl: 'https://picsum.photos/id/230/2000',
),
); |
Beta Was this translation helpful? Give feedback.
Before version
6.2.0
, replacing the background image required several steps. However, I just released version6.2.0
, which simplify that part. You can now use theupdateBackgroundImage
method to update the background image. Simply call the method and pass your image as shown below: