Our great sponsors
-
riverpod
A reactive caching and data-binding framework. Riverpod makes working with asynchronous code a breeze.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
We're also using Riverpod as our DI solution. These techniques obviously don't require Riverpod, but I've found Riverpod to be the best DI/state management solution, so it's what I use.
In this example, the app uses Firebase Auth. Because this is an external dependency, we're going to use a test double which mimics the behaviour of the real FirebaseAuth implementation. If you were using a different authentication system which worked over HTTP requests, you could use something like http_mock_adapter to fake your API responses.
Related posts
- Flutter App Development Tutorial
- Exploring Speed Up Mobile App Development Approaches
- How use riverpod_generator on a class ? my todo property doesn't refresh on UI
- Maximizing Your Flutter App's Performance with (Async)NotifierProvider, Freezed & Riverpod Code Generators
- Am I super dumb or is Riverpod SO complicated?