FAQ
Is this a one-shot generator?
Section titled “Is this a one-shot generator?”No. Keep it as a dev dependency. Use feature, test, sync, upgrade, and migrate over time.
Does it replace flutter create?
Section titled “Does it replace flutter create?”No. Create the app first, then run stackchain inside it.
Will sync delete my code?
Section titled “Will sync delete my code?”Only code inside managed markers (routes, core, features, generated) is replaced. Put your methods in // <stackchain:custom> or in *_custom_test.dart.
Where do I put custom tests?
Section titled “Where do I put custom tests?”dart run stackchain test authThen edit test/features/auth_custom_test.dart — that file is never overwritten.
Can I rename or remove a feature?
Section titled “Can I rename or remove a feature?”Yes:
dart run stackchain rename profile accountdart run stackchain remove authYou can’t remove the last remaining feature.
Can I switch state management later?
Section titled “Can I switch state management later?”Yes. Preview first:
dart run stackchain migrate --state cubit --dry-rundart run stackchain migrate --state cubitPages 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.
Which version is this docs for?
Section titled “Which version is this docs for?”stackchain 1.4.0