Skip to content

[Question] How can I update editor UI? #278

Answered by hm21
yangheecho asked this question in Q&A
Discussion options

You must be logged in to vote

Before version 6.2.0, replacing the background image required several steps. However, I just released version 6.2.0, which simplify that part. You can now use the updateBackgroundImage method to update the background image. Simply call the method and pass your image as shown below:

 /// final editorKey = GlobalKey<ProImageEditorState>();

await editorKey.currentState!.updateBackgroundImage(
  EditorImage(
    networkUrl: 'https://picsum.photos/id/230/2000',
  ),
);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yangheecho
Comment options

Answer selected by yangheecho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants