Skip to content

[Question] How to access the state of the sticker editor #88

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

You must be logged in to vote

The editor will insert new layers in the middle of the rendered image, it doesn't matter if the editor is only half the size of the screen, the rendered image will also be smaller, so the editor will still insert it in the middle. Looking at your image, it looks to me like you are using the example where the background is moving. In this case, we insert a fake image that must be the same size as the full editor content. Below is an example from the part you need to edit if you use the code from the example.

/// The size from the content below the editor
double contentBelowSize = 300;
Size editorSize = Size(
      width - MediaQuery.of(context).padding.horizontal,
      height - contentBel…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hm21
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #30 on June 14, 2024 07:05.