Skip to content

stackchain

Scaffold your Flutter app from a YAML config — then keep using it as you build.

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

Terminal window
cd my_app
dart pub add --dev stackchain
dart run stackchain init
flutter pub get
flutter run
stackchain:
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.