
[Flutter] State management ②: From provider to Riverpod. Take the counter app as an example.
In the previous article, we described Flutter's state management from statefulWidget + setState to Provider.This time, we will look at Provider to Riverpod, which is context independent and enhances immutability.