Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing content in a ResizableWidget does not update after setState called #9

Open
tricaricom opened this issue Jun 18, 2021 · 6 comments · May be fixed by #12
Open

Replacing content in a ResizableWidget does not update after setState called #9

tricaricom opened this issue Jun 18, 2021 · 6 comments · May be fixed by #12

Comments

@tricaricom
Copy link

I added an IconButton into a ResizableWidget and I want to add an image using image_picker. The image is selected but the ResizableWidget does not update with the image I selected.

@Tonku
Copy link

Tonku commented Sep 21, 2021

Any update on this?, Simply the hot reload doesn't work

@brunobely
Copy link

The workaround I'm currently using is to set a key on ResizableWidget, otherwise it does not rebuild its children. Any updates @ibako?

@stonega stonega linked a pull request Nov 13, 2021 that will close this issue
@pideltajah
Copy link

@brunobely What kind of key did you use? I gave it a UniqueKey() but still did not work.

@Sparsh218
Copy link

The workaround I'm currently using is to set a key on ResizableWidget, otherwise it does not rebuild its children. Any updates @ibako?

I also used this workaround, it worked for me.
I used a GlobalKey and gave it to resizable widget and whenever I call setstate I assign it new GlobalKey value and it rebuilds

@albert0m
Copy link

albert0m commented Jan 20, 2022

could you please share an example? I'm trying using a GlobalKey but the ux is not updated.

EDIT: ok, I found how.. but it redraws my existing widget and I lose the current state, so this is not a good solution on my side.

@abldabl
Copy link

abldabl commented May 18, 2023

i also don't like that i'm loosing my state. do you know what to do? maybe you found another package?

could you please share an example? I'm trying using a GlobalKey but the ux is not updated.

EDIT: ok, I found how.. but it redraws my existing widget and I lose the current state, so this is not a good solution on my side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants