Skip to content

FAQ

No. Keep it as a dev dependency. Use feature, test, sync, upgrade, and migrate over time.

No. Create the app first, then run stackchain inside it.

Only code inside managed markers (routes, core, features, generated) is replaced. Put your methods in // <stackchain:custom> or in *_custom_test.dart.

Terminal window
dart run stackchain test auth

Then edit test/features/auth_custom_test.dart — that file is never overwritten.

Yes:

Terminal window
dart run stackchain rename profile account
dart run stackchain remove auth

You can’t remove the last remaining feature.

Yes. Preview first:

Terminal window
dart run stackchain migrate --state cubit --dry-run
dart run stackchain migrate --state cubit

Pages and state classes are rewritten for the new API. // <stackchain:custom> is ported. Domain/data stay. App shell (bootstrap / main / app.dart) is regenerated — don’t put business logic there. Commit first.

stackchain 1.4.0