01 - Riverpod 3.0 vs BLoC 9: Which State Management to Pick
Riverpod 3 or BLoC 9 in Flutter: the same feature written and run with both, what changed in the new versions, and how to choose for your project.
Twelve articles on Flutter beyond the basics: Riverpod and BLoC state, performance, Wasm, desktop, testing, feature-first architecture and internals.
This series collects 12 articles (approximately 122 minutes of total reading time), designed for a level Advanced. The main topics covered are Riverpod 3.0, BLoC Flutter, State Management, Flutter.
Riverpod 3 or BLoC 9 in Flutter: the same feature written and run with both, what changed in the new versions, and how to choose for your project.
With @riverpod, build_runner generates the provider: AsyncNotifier, the three AsyncValue states, watch versus read, and tests with overrideWithValue.
Cubit or Bloc? Sealed events and states, concurrency transformers, the screen, tests and persistence with hydrated_bloc, with Dart code that was run.
At 60 Hz you get 16.67 ms per frame: read buildDuration and rasterDuration to see which thread overruns, and where Impeller is really the active renderer.
Before writing a platform channel, search the 94,898 packages on pub.dev. If you really need one: MethodChannel, EventChannel, Pigeon and their pitfalls.
Four ways to animate in Flutter, told apart by who decides when the movement ends: implicit widgets, AnimationController, SpringSimulation, CustomPainter.
What flutter build web --wasm produces: two bundles, a JavaScript fallback, supported browsers, COOP and COEP headers in nginx, and the limits for SEO.
Flutter Desktop without myths: supported platforms, FFI run on Linux, menus and confirm-on-close, multiple windows and MSIX, DMG and AppImage packaging.
Widget and golden tests in Flutter: pump and pumpAndSettle, mocks and fakes, goldens that fail in CI, tolerance and Alchemist. Listings analysed, Flutter 3.44.
How to write a Flutter integration test on the real app, measure frames in profile mode, use DevTools and run it in CI on Linux with xvfb.
Feature-first architecture in Flutter: when two layers are enough and when you need a domain, with Dart code that was run and a script that checks imports.
How Flutter reuses or destroys Elements: the type-and-key rule from the source, const, setState, keys and InheritedWidget, with two Dart programs run.