feature
dart run stackchain feature authdart run stackchain add notifications # same thingdart run stackchain feature onboarding --dry-runNames must be snake_case: auth, user_profile, notifications.
What it does
Section titled “What it does”- Adds the name to
stackchain.yaml - Creates the feature folder for your architecture + state library
- Wires routes and DI
- Adds tests
- Runs a health check
Named recipes
Section titled “Named recipes”Some names get richer extras:
| Name | Extra |
|---|---|
auth |
Form widget + form widget test, session/guards |
settings |
Settings tile, preferences persistence + unit test |
onboarding |
Page-view style onboarding widget |
notifications |
Notification list tile extras |
search |
Search box widget |
profile |
Profile-oriented extras |
| anything else | Solid baseline + smoke tests |
CRUD entity
Section titled “CRUD entity”For a list + form slice (not just a named recipe):
dart run stackchain crud productdart run stackchain crud order --overwriteSame as feature, plus list tile, form, and form widget test.
Related
Section titled “Related”dart run stackchain test auth # full unit + widget + integration suitedart run stackchain stub auth # placeholder tests for custom methodsdart run stackchain rename profile accountdart run stackchain remove authCustom methods in generated classes go in // <stackchain:custom> — see Your code stays safe.
Use feature <name> --overwrite after a state migrate if a page still looks stale; custom regions stay.