larryaasen / upgrader

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

Examples not updated! #263

Closed sisalik1 closed 5 months ago

sisalik1 commented 1 year ago

Examples here https://pub.dev/packages/upgrader are not updated!

upgrader: ^6.0.1
larryaasen commented 1 year ago

@sisalik1 Can you provide a little more information on what you mean by not updated?

sisalik1 commented 1 year ago

Just copy-paste the code from that page to a new project and you'll see errors. For example: UpgradeAlert(Upgrader(shouldPopScope: () => true)); has to be: UpgradeAlert(upgrader: Upgrader(shouldPopScope: () => true));

I figured it out by using Google, wasn't clear what needs to be changed. I assumed the exmples on this page work.