flutter_archx 2.0.0
flutter_archx: ^2.0.0 copied to clipboard
A production-ready CLI tool to scaffold enterprise-grade Flutter projects with a scalable, clean architecture template featuring GetX state management, Dio networking, secure storage, and modular feat [...]
Changelog #
2.0.0 #
Added #
- Interactive
createwizard. Runningflutter-arch createwith no flags now walks through project name, organization, description, preset, features, add-ons, and extras, then shows a summary and asks for confirmation before writing anything. flutter-arch add feature <name>. Scaffolds a feature module inside an existing project (binding, controller, view, models, widgets) and registers its route inapp_routes.dartandapp_pages.dart— the two files you would otherwise edit by hand for every new screen.--no-routeskips registration,--pathoverrides the route path. If the routing files can't be patched they are left untouched and the snippet to paste is printed.- Template presets —
minimal,starter,enterprise, andcustom(--preset). - Selectable features (
--features): splash, onboarding, login, register, forgot password, home, bottom-navigation shell, notifications, profile, settings, and an end-to-end CRUD module with search, pagination, detail, create/edit, and delete. - Selectable add-ons (
--add-ons): persisted theme switcher, localization (English + Arabic with RTL), offline banner, cached images with shimmer, build flavors, test scaffolding, GitHub Actions CI, and generated docs. --listprints every preset, feature, and add-on with its id.--yesskips all prompts for unattended and CI use.- Remembered organization: the wizard pre-fills your previous answer from
~/.flutter_archx.json. Unattended runs ignore it and stay deterministic. --git/--no-gitand--pub-get/--no-pub-getflags.
Changed #
- Routing is now generated from the selection.
app_routes.dartandapp_pages.dartcontain constants andGetPageentries only for the screens the project actually has — no dead routes, no unresolved imports. pubspec.yamlis generated from the selection. Only add-ons that were chosen contribute dependencies.- Replaced the eight hardcoded HR modules (employees, attendance, payroll, leave, recruitment, reports) with the generic feature catalog above.
- The app drawer is built from the selected screens instead of a fixed HR menu, and is omitted entirely when the bottom-navigation shell is used.
- Initialization moved into
lib/bootstrap.dartso every entry point shares one startup path;AppConfig.instance.init()is now actually called. - Git initialization now runs
git initexplicitly. Previously--no-gitpassed an unrelated--no-pubflag toflutter createand never affected git at all.
Fixed #
- Generated projects did not compile on current Flutter:
SystemUIOverlayStyleshould beSystemUiOverlayStyle, andCardThemeshould beCardThemeData. ItemRepositoryand other repositories are plain classes rather thanGetxService, so they can be mocked in tests without GetX lifecycle errors.- Selecting
registerorforgot_passwordwithoutloginnow pullsloginin automatically instead of generating links to a missing route.
1.0.0 #
- Initial release
flutter-arch create <project_name>command- Enterprise architecture template with 8 feature modules
- GetX state management and routing
- Dio-based networking layer with interceptors
- Secure and local storage wrappers
- Clean Architecture layers (data, domain, features)
- Shared widgets, components, dialogs, and layouts
- Configurable organization identifier (
--org) - Environment and flavor configuration support