If you learned Riverpod from older tutorials, your providers probably look like this: a Provider((ref) => ...) factory, a StateNotifierProvider with a create callback, generics stacked three deep just to say "this is an integer." It works, but it is boilerplate that exists only to satisfy the compiler. The flutter riverpod generator deletes most of that ceremony. You annotate a plain Dart function or class with @riverpod , run build_runner once, and get a fully typed, documented, auto-disposed provider without writing a single factory.
In this guide I will walk you through the whole thing the way I use it in production: setup in five minutes, plain function providers, notifiers, async data fetching, parameterized "family" providers, the right way to read state, and how to test generated providers.…