larryaasen / upgrader

A Flutter package for prompting users to upgrade when there is a newer version of the app in the store.
MIT License
526 stars 260 forks source link

Custom Upgrader won't work #337

Closed emirua closed 9 months ago

emirua commented 9 months ago

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 commented 9 months ago

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.

dwainetrain commented 6 months ago

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