Scaffold once
init builds lib/app, lib/core, and lib/features — ready to run.

stackchain turns a few lines of YAML into a runnable Flutter app — with architecture, state management, routing, and DI already wired. Add features as you go. Your hand-written code stays safe.
v1.4.0 · MIT
cd my_appdart pub add --dev stackchaindart run stackchain initflutter pub getflutter runstackchain: preset: production_bloc features: [splash, auth, home]Or set each piece yourself: architecture, state_management, routing, di, network.
Scaffold once
init builds lib/app, lib/core, and lib/features — ready to run.
Add features
feature auth creates files, routes, DI, and tests in one command.
Generate tests
test auth adds unit, widget, and integration scaffolds — custom tests stay yours.
Stay in sync
Router and DI update automatically. // <stackchain:custom> survives migrate.
Change later
Switch Bloc → Cubit (or a preset) with migrate. Preview with --dry-run.