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

Custom Upgrader won't work #337

Closed
emirua opened this issue Oct 12, 2023 · 2 comments
Closed

Custom Upgrader won't work #337

emirua opened this issue Oct 12, 2023 · 2 comments

Comments

@emirua
Copy link

emirua commented Oct 12, 2023

Hi, if you use a custom Upgrader, even if it's the default constructor, the notification or the upgradeCard won't show.However, if you use Upgrader.sharedInstance it works.

@emirua
Copy link
Author

emirua commented Oct 12, 2023

I see now that you need to create an instance that doesn't get recreated if a widget is updated. Maybe it would be good to document this case in the README as it's a common case in flutter.

@emirua emirua closed this as completed Oct 12, 2023
@dwainetrain
Copy link

@emirua, Can you give an example of what worked for you?

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

No branches or pull requests

2 participants