The Complete Flutter Course: Build Android, iOS and Web Apps
Riverpod, BLoC or Provider: which to learn?
Choosing Flutter state management? Provider simplifies Flutter's way of passing state down the widget tree; Riverpod, by its author, uses providers independent of that tree; BLoC makes each change an event and a new state. Each powers real apps, and Flutter's documentation leaves the choice to the app and team. This guide compares them fairly and locates each in The Complete Flutter Course: Build Android, iOS and Web Apps.
Taught by Sagnik Bhattacharya and Paulina Knop
What you will be able to do
You will be able to:
- Use setState for state held within a widget, and recognise when that scope is no longer enough.
- Let widgets share a counter through Provider, using ChangeNotifier, ChangeNotifierProvider, Consumer and notifyListeners.
- Build that counter again in Riverpod with ProviderScope, ConsumerWidget, ref.watch and autoDispose.
- Express a feature through BLoC events and states, using BlocProvider and BlocBuilder from flutter_bloc.
- Use Riverpod's StreamProvider to give widgets a stream's current value within a complete app.
Projects
What you will build.
The course has nine projects. These three matter most here.
-
Project 06
Counter with Provider and Riverpod
Compare the packages by building the same counter in each, keeping the app unchanged while the state approach changes.
-
Project 07
Counter in MVC, MVVM and BLoC
Follow BLoC events and states in a counter, alongside MVC and MVVM approaches to organising that app.
-
Project 08
Budget app
See Riverpod handle sign-in and live data throughout an app, beyond what the counter examples demonstrate.
Lessons
The lessons that matter, in course order.
The Complete Flutter Course: Build Android, iOS and Web Apps has 223 lessons. This page picks out 9 of them, 2 h 11 min of video. Each lesson keeps its number in the course.
Where to start
Lesson 38 Stateful vs stateless widgets
Begin with Lesson 38: My Dashatar introduces state there. Already comfortable with setState? Move to Lesson 154 for Provider and Riverpod, followed by Lesson 164 for BLoC. At Lesson 216, revisit the budget app whose build begins at Lesson 169.
9 of 223 lessons · 2 h 11 min
07 State management - Basics Explore state in My Dashatar through a stateful widget and tap counter, with setState changing the background to a random colour.
- 38 Start here Stateful vs stateless widgets What state is, then a tap counter on Dash with setState 5 min
- 39 Random background colours with setState Swap colours on tap, then pick from a list with Random 7 min
20 Advanced State management Take a counter starter split into a view and view model, implement it with Provider and ChangeNotifier, then use Riverpod with autoDispose.
- 154 Provider and the counter starter project A view and view model split for a simple counter app 2 min
- 155 A counter with Provider and ChangeNotifier ChangeNotifierProvider, Consumer and notifyListeners 5 min
- 156 Riverpod, the successor to Provider ProviderScope and an autoDispose ChangeNotifierProvider 4 min
- 157 A counter with Riverpod and ConsumerWidget WidgetRef, ref.watch and when autoDispose resets state 5 min
21 Flutter Software Architectures Study events, states and streams in BLoC before applying flutter_bloc's BlocProvider and BlocBuilder to a counter.
- 164 BLoC: Business Logic Component Events, states, streams and the flutter_bloc widgets 20 min
- 165 A counter app with BLoC Events, states, BlocProvider and BlocBuilder in flutter_bloc 23 min
23 Budget app: performance optimisation and code reuse Examine the completed budget app's Riverpod set-up, including a sign-in check through StreamProvider, shared widgets and a model class.
- 216 Performance optimisation and code reuse StreamProvider for sign-in, shared widgets and a model class 58 min
Instructors
Who teaches it.
Instructor, Flutter
Paulina Knop
Flutter developer and curriculum designer. Teaches the Flutter course.
Questions
Asked before starting.
Which should I learn first: Riverpod, BLoC or Provider?
Start with the concept: hold state outside the widgets displaying it, and rebuild those widgets when it changes. Provider offers the gentlest introduction; the course presents Riverpod as its successor. BLoC requires an event for each change, a discipline valued by some teams. That is the teaching order in The Complete Flutter Course: Build Android, iOS and Web Apps from Coding Liquids: Provider and Riverpod share a counter example, while BLoC uses another. This guide selects 9 lessons, taking 2 hours 11 minutes.
Has Riverpod made Provider outdated?
Provider has not become unusable. It remains a Flutter Favorite package and appears widely in existing apps you might work on. Riverpod is a later design by the same author, and new projects often choose it instead. In The Complete Flutter Course: Build Android, iOS and Web Apps, Lesson 155 builds a Provider counter with ChangeNotifier, and Lesson 157 rebuilds it with Riverpod, helping you read either approach in other people's code.
Why would a team require BLoC?
Named events lead to new states, leaving a trace of what changed and why while keeping business logic separate from widgets. The bloc library recommends Bloc when that trace matters and the lighter Cubit elsewhere. In The Complete Flutter Course: Build Android, iOS and Web Apps, Lesson 164 explains events, states and streams, followed by a flutter_bloc counter at Lesson 165. The course does not cover Cubit.
For the same feature, does Riverpod usually take less code than BLoC?
For small features, usually: Riverpod needs a provider and the class it exposes, whereas a Bloc needs event classes, state classes and code mapping events to states. BLoC's additional code provides a record of each event, which may matter in a large app. Compare the counter files in The Complete Flutter Course: Build Android, iOS and Web Apps: Riverpod appears at Lesson 157 and BLoC at Lesson 165.
Should I learn GetX as well?
If you join a project using GetX, learning it makes sense. It combines state, dependency injection and navigation, requires little code and appears in some job listings. Holding state outside the widgets that display it is also the central idea taught through Provider and Riverpod in The Complete Flutter Course: Build Android, iOS and Web Apps, so learning GetX later is largely about its syntax. GetX, MobX and Redux are not taught in the course.
Where does the course use each state management approach?
The Complete Flutter Course: Build Android, iOS and Web Apps covers setState, Provider, Riverpod and BLoC. My Dashatar uses setState; a counter introduces Provider followed by Riverpod; another counter places BLoC alongside MVC and MVVM. The budget app uses Riverpod with MVVM throughout, with a StreamProvider later supplying sign-in state to widgets. The Riverpod examples use ChangeNotifierProvider, which Riverpod's documentation has since placed behind a legacy import. Notifier classes and code generation are not covered, and the course does not use BLoC for a complete app.
Will this course help me choose state management for my next app?
Yes. Building with the approaches before deciding lets you compare their code requirements and what they provide. The Complete Flutter Course: Build Android, iOS and Web Apps uses the same counter for Provider and Riverpod, explores BLoC in another counter alongside MVC and MVVM, and applies Riverpod throughout a budget app. It does not help with choosing GetX or show BLoC supporting a complete app.
Flutter
See the whole course.
The Complete Flutter Course: Build Android, iOS and Web Apps: 25 hours of video in 223 lessons, built around 9 projects, with lifetime access, a Certificate of Completion and a 14-day money-back guarantee.
The same course
For another background, goal, topic or comparison.
By background
By goal
By topic
- Dart
- State management
- Firebase
- Widgets and layouts
- UI design and styling
- Riverpod
- App architecture
- Sign-in and authentication
- Cloud Firestore
- REST APIs with Dio
- Navigation and routing
- Responsive layouts
- Animations and gestures
- Flutter web
- Set-up on Windows and Mac
- Forms and validation
- Futures and Streams
- CI with GitHub Actions
- Reusable widgets
- Debugging
- Packages from pub.dev
Comparisons
- Flutter or React Native
- Which framework to learn
- Course or free tutorials
- Flutter or native Android
- Flutter or Swift
- Flutter or Kotlin Multiplatform
- Flutter or FlutterFlow
- Learn Flutter or use AI
- Firebase or Supabase
- Flutter web or React
- Dart or JavaScript
- Flutter or Ionic
- Flutter or .NET MAUI
- VS Code or Android Studio