Riverpod 3 Tutorial 👉🏻 • Riverpod 3 Tutorial: The Complete Flutter ...
Honestly, working with Provider will feel messier after you learn this and Riverpod will no longer be a mystery. This is a complete simplified Flutter Riverpod tutorial that will make migrating to Riverpod 100x simpler.
Project Repo 👉🏻 https://github.com/wootcot/flutter-yo...
Chapters:
00:00 Riverpod workflow overview
02:22 Installing dependencies
06:06 Creating folder structure
07:55 About current project
08:16 Defining state
11:34 Defining synchronous state notifier
17:34 Creating SYNC todo list screen
19:33 Connecting notifier to a screen
21:45 Adding ProviderScope & accessing state
22:52 Calling notifier method to add todo
25:22 Completing sync state management
29:14 Sync state management wrap up
30:44 Defining a service file for async todo list
33:32 Creating provider for the service file
36:07 Creating ASYNC todo list screen
37:40 Defining async state notifier
40:13 Using service in a notifier
46:44 Updating async state from API
48:14 Handling async state data
51:01 Using Riverpod's keepAlive
52:39 Only private property allowed!
54:02 Improving loading indicator
55:13 Handling initial null state
55:43 Handling error state
58:14 Preserving previous state values
59:16 Final wrap up!