getx_boilerplate_cli 1.0.1 copy "getx_boilerplate_cli: ^1.0.1" to clipboard
getx_boilerplate_cli: ^1.0.1 copied to clipboard

Command-line interface to generate premium Flutter starter boilerplates utilizing GetX and Clean Architecture.

GetX Boilerplate CLI ๐Ÿš€ #

Pub Version License: MIT Flutter GetX

An enterprise-grade, developer-friendly Command-Line Interface (CLI) tool to instantly scaffold a premium Flutter starter template. Built upon Clean Feature-First Architecture, GetX, Centralized Dependency Injection, Singleton Routing, and deeply customizable Premium UI Components.

Instead of manually cloning a repository and performing tedious search-and-replace naming configurations, this CLI automates the entire process in seconds!


โšก Quick Start #

1. Install the CLI Globally #

Activate the CLI tool on your local machine using the Dart SDK package manager:

dart pub global activate getx_boilerplate_cli

Tip

Ensure your system's PATH environment variable includes the Dart SDK pub-cache/bin directory so you can run the command directly from any terminal.

2. Scaffold a New Project #

Run the create command followed by your desired project name (in lowercase with underscores):

getx_boilerplate_cli create my_awesome_app

โš™๏ธ What the CLI Handles Automatically #

When you run the create command, the CLI performs the following tasks:

  • ๐Ÿ“ฅ Repository Cloning: Clones the absolute latest production-ready template from parentroots/getx.
  • ๐Ÿงน Git History Cleanup: Deletes the cloned .git directory so you start with a clean git history for your team.
  • ๐Ÿ”ง Smart Package Renaming: Recursively scans and renames all namespace declarations and imports from getx_template to my_awesome_app (in pubspec.yaml, Dart source files, Android package manifests, Kotlin imports, iOS configurations, and CMake build configurations).
  • ๐Ÿ“‚ Directory Sorting: Renames files and directory packages containing getx_template to match your new project.
  • ๐Ÿ“ฆ Dependency Resolution: Automatically runs flutter pub get inside the generated project directory so it's ready to run immediately.

๐Ÿ—๏ธ Generated Project Architecture #

The generated project is structured using the industry-proven Clean Feature-First Architecture:

lib/
โ”œโ”€โ”€ core/                   # App-wide foundations & configurations
โ”‚   โ”œโ”€โ”€ bindings/           # Centralized global Dependency Injection (FENIX-enabled)
โ”‚   โ”œโ”€โ”€ config/             # App lifecycle observers & configurations
โ”‚   โ”œโ”€โ”€ constants/          # Static app constants (API, storage keys, colors, strings)
โ”‚   โ”œโ”€โ”€ errors/             # Global error handling logic & custom exceptions
โ”‚   โ”œโ”€โ”€ localization/       # Internationalization & translations
โ”‚   โ”œโ”€โ”€ network/            # Singleton HTTP (Dio) and WebSocket Clients
โ”‚   โ”œโ”€โ”€ routing/            # Singleton navigation & routes registration
โ”‚   โ”œโ”€โ”€ theme/              # Curated light/dark theme config, radius, & typography
โ”‚   โ””โ”€โ”€ utils/              # Helper utilities & extensions
โ”‚
โ”œโ”€โ”€ component/              # Globally shared, highly customizable Common UI widgets
โ”‚   โ”œโ”€โ”€ dialogs/            # App dialogs & Common Snackbars
โ”‚   โ”œโ”€โ”€ layout/             # Lists, Grids, Dropdowns, Radios, Scaffolds, and CommonText
โ”‚   โ”œโ”€โ”€ loading/            # Common shimmers, page loaders & loading overlays
โ”‚   โ”œโ”€โ”€ pickers/            # Compressed Multi-Image, Date, Time, and Country pickers
โ”‚   โ””โ”€โ”€ states/             # Empty, Error, Offline, and Retry state views
โ”‚
โ””โ”€โ”€ features/               # Self-contained modules (Domain layers)
    โ””โ”€โ”€ [feature_name]/     # Example: auth, home, profile
        โ”œโ”€โ”€ data/           # Module-specific API integrations & data models
        โ””โ”€โ”€ screen/         # Flattened UI Presentation Layer (View + Controller)

๐ŸŒŸ Boilerplate Key Highlights #

  • ๐Ÿข Feature-First Clean Architecture: Highly scalable and team-friendly structure.
  • ๐Ÿ“ฆ Dependency Injection: Centralized, memory-efficient global bindings using GetX fenix: true lazy instantiations.
  • ๐Ÿ›ฃ๏ธ Singleton Routing: Simplified route configurations and transitions in one centralized Singleton class.
  • ๐ŸŒ High-Performance Network Client: Custom ApiClient (Dio Singleton) with automatic request logs, request headers, token injection, and structured error handling.
  • ๐Ÿ“ฑ Connectivity Service: Real-time internet connection observer dynamically checking and alerting connection status.
  • ๐ŸŽจ Curated Common UI Components: Customizable components like CommonAppBar, CommonImage, CommonDatePicker, CommonMultiImagePicker, CommonSearchBar, and more.

๐Ÿš€ Run the Generated App #

After generating the app, simply run:

cd my_awesome_app
flutter run

๐Ÿ“„ License #

This project is licensed under the MIT License. See the LICENSE file in the repository for details.

6
likes
0
points
478
downloads

Publisher

unverified uploader

Weekly Downloads

Command-line interface to generate premium Flutter starter boilerplates utilizing GetX and Clean Architecture.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, path

More

Packages that depend on getx_boilerplate_cli