SimpleBoilerplates / Flutter

A boilerplate project for Flutter using RiverPod, Dio, go_router, Freezed and generated with very_good_cli
MIT License
568 stars 103 forks source link

Feature request for ChangeNotifierProvider #25

Closed tafaust closed 1 year ago

tafaust commented 1 year ago

This flutter template only shows how to work with StateNotifierProvider where the state is a model. What is an example of when to use ChangeNotifierProvider and can we include it in this boilerplate?

I am willing to do a PR here.

Sadmansamee commented 1 year ago

I am reluctant to use ChangeNotifierProvider, currently I am changing StateNotifierProvider to newly introduced NotifierProvider.

Sadmansamee commented 1 year ago

StateProvider, StateNotifierProvider, ChangeNotifierProvider. These are legacy and shouldn't be used anymore.