Skip to main content

Advanced Flutter

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.

12Articles122 minTotal reading timeAdvancedLevel
Riverpod 3.0BLoC FlutterState ManagementFlutterProviderRiverpod AsyncNotifier

Series Articles

  1. 1

    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.

  2. 2

    02 - Riverpod in Depth: AsyncNotifier, Codegen and Testing

    With @riverpod, build_runner generates the provider: AsyncNotifier, the three AsyncValue states, watch versus read, and tests with overrideWithValue.

  3. 3

    03 - BLoC Pattern in Depth: Events, States and Cubit

    Cubit or Bloc? Sealed events and states, concurrency transformers, the screen, tests and persistence with hydrated_bloc, with Dart code that was run.

  4. 4

    04 - Flutter Performance: Impeller, Frame Times and Jank

    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.

  5. 5

    05 - Platform Channels: Integrating Swift and Kotlin Native Code

    Before writing a platform channel, search the 94,898 packages on pub.dev. If you really need one: MethodChannel, EventChannel, Pigeon and their pitfalls.

  6. 6

    06 - Flutter Animations: Physics, Implicit and Custom Painters

    Four ways to animate in Flutter, told apart by who decides when the movement ends: implicit widgets, AnimationController, SpringSimulation, CustomPainter.

  7. 7

    07 - Flutter Web with WebAssembly: Build, Deploy and Limits

    What flutter build web --wasm produces: two bundles, a JavaScript fallback, supported browsers, COOP and COEP headers in nginx, and the limits for SEO.

  8. 8

    08 - Flutter Desktop: FFI, Menus, Windows and Packaging

    Flutter Desktop without myths: supported platforms, FFI run on Linux, menus and confirm-on-close, multiple windows and MSIX, DMG and AppImage packaging.

  9. 9

    09 - Widget Testing and Golden Tests: Automated Visual Quality

    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.

  10. 10

    10 - Flutter Integration Tests and DevTools: From Test to CI

    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.

  11. 11

    11 - Feature-First Clean Architecture in Flutter

    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.

  12. 12

    12 - Flutter Internals: Widgets, Elements, Keys and setState

    How Flutter reuses or destroys Elements: the type-and-key rule from the source, const, setState, keys and InheritedWidget, with two Dart programs run.