A simple flutter example that show different ways to use ChangeNotifierProvider.🧷
Home Page | Counter Consumer Page |
---|---|
Simple Examples, that show, how to call a local ChangeNotifierProvider, or declare a Global ChangeNotifierProvider, and how they rebuild the view when call notifyListeners()
Also, the code from the Flutter State Managment example, that show a Cart and a Model, with a little tweak in the login, to show a local ChangeNotifierProvider that dispose when dispose the view.