FLUTTER ECOSYSTEM

riverpod_generator

A code generator for Riverpod. This both simplifies the syntax empowers it, such as allowing stateful hot-reload.

Latest version
4.0.3
30-day downloads
733.3K
Likes
430
Pub points
130

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

Riverpod_generator is a code generation tool for the Riverpod state management library in Flutter. It simplifies boilerplate by automatically generating provider definitions, enabling cleaner syntax and enhanced developer experience. The generator supports stateful hot-reload, allowing state to persist during development without restarts. It integrates seamlessly with Riverpod’s ecosystem, reducing manual coding and improving maintainability. Designed for performance and ease of use, it helps developers focus on logic rather than repetitive setup.

Use cases
  • Simplifying complex provider declarations
  • Enabling stateful hot-reload in development
  • Reducing boilerplate in large-scale apps
  • Automating provider creation across multiple files
  • Improving code readability and maintainability
Key features
  • Automatic provider code generation
  • Supports stateful hot-reload
  • Reduces manual boilerplate
  • Integrates with Riverpod's API
  • Generates type-safe code
Suitable for
  • Flutter developers using Riverpod
  • Teams building scalable state-managed apps
  • Developers seeking faster iteration with hot-reload
  • Projects requiring clean, maintainable state logic
  • Those wanting to minimize repetitive provider setup
Considerations
  • Requires Dart code generation setup
  • Needs proper build_runner configuration
  • May increase build time slightly
  • Depends on Riverpod core package
  • Not needed for simple, hand-written providers
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add riverpod_generator

Categories

Source repository

Related projects