FLUTTER ECOSYSTEM

stacked_generator

Stacked Generator is a package dedicated to reduce the boilerplate required to setup a stacked application

Latest version
2.0.4
30-day downloads
16.2K
Likes
46
Pub points
120

Package Overview

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

Overview

Stacked Generator is a code generation package designed to minimize boilerplate in Stacked applications. It automates the creation of essential components like view models, services, and dependencies, streamlining development. By leveraging annotations and build runners, it generates clean, type-safe code that integrates seamlessly with the Stacked framework. This reduces manual coding errors and accelerates app setup, especially for complex state management scenarios. Ideal for developers using Stacked for Flutter apps across multiple platforms.

Use cases
  • Automating ViewModel generation
  • Simplifying dependency injection setup
  • Reducing repetitive code in state management
  • Accelerating initial project scaffolding
  • Supporting large-scale Stacked application development
Key features
  • Annotation-based code generation
  • Integration with Stacked framework
  • Type-safe generated code
  • Build runner support
  • Automatic service and dependency registration
Suitable for
  • Flutter developers using Stacked
  • Teams building scalable apps
  • Developers seeking reduced boilerplate
  • Projects requiring structured state management
  • Cross-platform mobile and desktop apps
Considerations
  • Requires understanding of Stacked framework
  • Needs build_runner dependency
  • Limited customization without modifying templates
  • Best used in conjunction with stacked package
  • May increase build time slightly
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add stacked_generator

Categories

Dependencies

Dependency list 13 items

Related projects