-
riverpod
A reactive caching and data-binding framework. Riverpod makes working with asynchronous code a breeze.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Next option is using a StateNotifier (I'm quite confused about this one) this way you wrap your class with StateNotifier and emit different states in different situations which leads us to use a "BLoCy" solution. Riverpod official page has a third party examples section which led me to this one. So basically defining states same or at least very similar as in BLoC (of course its migrating BLoC to Riverpod). This way you can achieve the expected behavior but there's a lot (?) boilerplate code. (Sidenote: Dart really needs enums like Swift has, associated values are extremely powerful and the above mentioned boilerplate code would be like 6 lines.)
How would you animate state changes (for example loading and data after async call) with AnimatedSwitcher using Riverpod ?
Related posts
-
Exploring Speed Up Mobile App Development Approaches
-
How use riverpod_generator on a class ? my todo property doesn't refresh on UI
-
State Management in Flutter: Choosing the Right Approach for Your App.
-
Display username/email after login in home page
-
which is the most similar state management pattern to mvvm in flutter.