You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to re-assign PainterController object but it throws me A PainterController was used after being disposed.
My Scenario
I want to make a painter screen similar to the one of Social Media apps like instagram or fb messenger. So, the user can draw something on the image, but he/she can also update it in a second moment.
I have two screen ImageScreen and BrushScreen. in the ImageScreen there is option to go for Brush and draw anything on image. then user can tap "Done" button and get back to ImageScreen. But when user again go to the BrushScreen i need to keep PainterController. So user can update with existing one.
It works when assigned PainterController first time. but at second time it throws error as i mentioned above.
Say I received a base64encoded image from an API. My app requires a feature to draw or erase on top of that image and then save it.
Is there no way to initialize the PaintController with a background image?
I want to re-assign PainterController object but it throws me A PainterController was used after being disposed.
My Scenario
I want to make a painter screen similar to the one of Social Media apps like instagram or fb messenger. So, the user can draw something on the image, but he/she can also update it in a second moment.
I have two screen
ImageScreen
andBrushScreen
. in the ImageScreen there is option to go for Brush and draw anything on image. then user can tap "Done" button and get back to ImageScreen. But when user again go to the BrushScreen i need to keepPainterController
. So user can update with existing one.It works when assigned
PainterController
first time. but at second time it throws error as i mentioned above.Any help on this would be much appreciated!
Code Snippet
BrushScreen
ImageScreen Brush button
The text was updated successfully, but these errors were encountered: