flutter_archx 2.0.0 copy "flutter_archx: ^2.0.0" to clipboard
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 create wizard. Running flutter-arch create with 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 in app_routes.dart and app_pages.dart — the two files you would otherwise edit by hand for every new screen. --no-route skips registration, --path overrides 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, and custom (--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.
  • --list prints every preset, feature, and add-on with its id.
  • --yes skips 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-git and --pub-get / --no-pub-get flags.

Changed #

  • Routing is now generated from the selection. app_routes.dart and app_pages.dart contain constants and GetPage entries only for the screens the project actually has — no dead routes, no unresolved imports.
  • pubspec.yaml is 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.dart so every entry point shares one startup path; AppConfig.instance.init() is now actually called.
  • Git initialization now runs git init explicitly. Previously --no-git passed an unrelated --no-pub flag to flutter create and never affected git at all.

Fixed #

  • Generated projects did not compile on current Flutter: SystemUIOverlayStyle should be SystemUiOverlayStyle, and CardTheme should be CardThemeData.
  • ItemRepository and other repositories are plain classes rather than GetxService, so they can be mocked in tests without GetX lifecycle errors.
  • Selecting register or forgot_password without login now pulls login in 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
1
likes
0
points
348
downloads

Publisher

verified publisherineelakandan.in

Weekly Downloads

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 feature-based structure.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, mason_logger, path

More

Packages that depend on flutter_archx