Overview
Currently FlutterInit generates a bare-bones app with onboarding, auth, and
a blank home screen. This is not enough for developers who want to hit the
ground running on a real project.
This issue introduces a new "App Type" config option that lets users select
what kind of app they are building. FlutterInit will then generate a
fully-structured, real-world project for that app type, not just folders,
but working screens, models, and logic scaffolded for that domain.
App Type System
The appType option must be data-driven, not hardcoded. Each app type is a
self-contained template bundle that lives in templates/flutter/apps/.
New app types should be addable by simply dropping a new folder into
templates/flutter/apps/ and registering it, zero changes to the generator
core required. This makes app types a natural contribution surface for the
community.
Initial app types shipped with this feature:
todo - Task management app
ecommerce - Product listing, cart, checkout, orders
chat - Conversations, messages, contacts
fintech - Wallet, transactions, send/receive money
What Each App Type Should Generate
Todo
E-commerce
Chat
Fintech
Implementation Plan
1. Schema
2. Templates
3. Generator Logic
4. Quality
Overview
Currently FlutterInit generates a bare-bones app with onboarding, auth, and
a blank home screen. This is not enough for developers who want to hit the
ground running on a real project.
This issue introduces a new "App Type" config option that lets users select
what kind of app they are building. FlutterInit will then generate a
fully-structured, real-world project for that app type, not just folders,
but working screens, models, and logic scaffolded for that domain.
App Type System
The
appTypeoption must be data-driven, not hardcoded. Each app type is aself-contained template bundle that lives in
templates/flutter/apps/.New app types should be addable by simply dropping a new folder into
templates/flutter/apps/and registering it, zero changes to the generatorcore required. This makes app types a natural contribution surface for the
community.
Initial app types shipped with this feature:
todo- Task management appecommerce- Product listing, cart, checkout, orderschat- Conversations, messages, contactsfintech- Wallet, transactions, send/receive moneyWhat Each App Type Should Generate
Todo
E-commerce
Chat
Fintech
Implementation Plan
1. Schema
appTypefield toapp/lib/config/schema.tsappTypeflag through generator to templates2. Templates
templates/flutter/apps/as the root for all app bundlesdomain-specific screens, models, and logic
3. Generator Logic
app/lib/generator to dynamically load the correct appbundle based on
appTypetheme) compose correctly on top of any app type
4. Quality