Migration guide
Existing Flutter app → stackchain
Section titled “Existing Flutter app → stackchain”dart pub add --dev stackchain# write stackchain.yaml (or use a preset)dart run stackchain init --dry-rundart run stackchain initExisting files are skipped by default. Use --overwrite carefully. Move old features into the new layout gradually; use feature for anything new.
Switch stack later
Section titled “Switch stack later”dart run stackchain migrate --state cubit --dry-rundart run stackchain migrate --state cubitdart run stackchain migrate --preset production_riverpodPresentation + wiring regenerate. Domain/data stay (unless you change architecture). Commit first.
See migrate for all flags.