Flutter Template CLI π
Instantly set up a complete Flutter app structure with pre-built architecture and essential packages.
β¨ Features
- π Complete folder structure (core, features, models, services, widgets)
- π¨ Pre-configured theme and styling
- π¦ Auto-installs required packages (GetX, Dio, Flutter Portal, Get Storage)
- ποΈ Clean architecture ready to use
- β‘ Zero configuration needed - just run and code!
π¦ What Gets Installed
The template automatically includes:
- GetX (^4.7.2) - State management & routing
- Dio (^5.9.0) - HTTP client for API calls
- Flutter Portal (^1.1.4) - Advanced overlay widgets
- Get Storage (^2.1.1) - Local storage solution
π Installation
dart pub global activate get_clean
π Usage
- Create a new Flutter project:
flutter create my_awesome_app
cd my_awesome_app
- Run the template installer (fully automated):
get_clean
- Start coding! Everything is set up:
flutter run
That's it! The CLI will:
- β Copy the complete lib folder structure
- β Add all required dependencies to pubspec.yaml
- β Run flutter pub get automatically
- β Everything ready to use!
π Folder Structure
my_awesome_app/
βββ lib/
β βββ main.dart
β βββ app/
β β βββ app_binding.dart
β β βββ app_controller.dart
β β βββ app_view.dart
β βββ core/
β β βββ constants/
β β β βββ app_constants.dart
β β βββ errors/
β β β βββ exceptions.dart
β β β βββ failures.dart
β β βββ routes/
β β β βββ app_pages.dart
β β βββ theme/
β β β βββ app_colors.dart
β β β βββ app_theme.dart
β β β βββ app_typography.dart
β β βββ utils/
β β βββ app_utils.dart
β β βββ helpers.dart
β βββ data/
β β βββ datasources/
β β β βββ local_datasource.dart
β β β βββ remote_datasource.dart
β β βββ models/
β β β βββ base_model.dart
β β βββ repositories/
β β βββ base_repository_impl.dart
β βββ domain/
β β βββ entities/
β β β βββ base_entity.dart
β β βββ repositories/
β β β βββ base_repository.dart
β β βββ usecases/
β β βββ base_usecase.dart
β βββ features/
β β βββ auth/
β β β βββ bindings/
β β β β βββ auth_binding.dart
β β β βββ controllers/
β β β β βββ auth_controller.dart
β β β βββ data/
β β β β βββ datasources/
β β β β β βββ auth_local_datasource.dart
β β β β β βββ auth_remote_datasource.dart
β β β β βββ models/
β β β β β βββ user_model.dart
β β β β βββ repositories/
β β β β βββ auth_repository_impl.dart
β β β βββ domain/
β β β β βββ entities/
β β β β β βββ user_entity.dart
β β β β βββ repositories/
β β β β β βββ auth_repository.dart
β β β β βββ usecases/
β β β β βββ get_user_usecase.dart
β β β β βββ login_usecase.dart
β β β βββ presentation/
β β β β βββ widgets/
β β β β β βββ login_form.dart
β β β β βββ views/
β β β β βββ login_view.dart
β β β βββ routes/
β β β βββ auth_routes.dart
β β βββ home/
β β βββ bindings/
β β β βββ home_binding.dart
β β βββ controllers/
β β β βββ home_controller.dart
β β βββ data/
β β β βββ datasources/
β β β β βββ home_local_datasource.dart
β β β β βββ home_remote_datasource.dart
β β β βββ models/
β β β β βββ item_model.dart
β β β βββ repositories/
β β β βββ home_repository_impl.dart
β β βββ domain/
β β β βββ entities/
β β β β βββ item_entity.dart
β β β βββ repositories/
β β β β βββ home_repository.dart
β β β βββ usecases/
β β β βββ get_items_usecase.dart
β β βββ presentation/
β β βββ widgets/
β β β βββ item_card.dart
β β βββ views/
β β βββ home_view.dart
β βββ services/
β β βββ api_service.dart
β β βββ auth_service.dart
β β βββ storage_service.dart
β βββ shared/
β βββ widgets/
β β βββ custom_button.dart
β βββ components/
β βββ loading_indicator.dart
βββ pubspec.yaml
π§ Troubleshooting
Issue: Command not found
# Make sure Dart pub global bin is in your PATH
export PATH="$PATH":"$HOME/.pub-cache/bin"
Issue: Template not copying
# Reinstall the CLI
dart pub global deactivate get_clean
dart pub global activate get_clean
π License
MIT License - feel free to use for personal and commercial projects!
π€ Contributing
Found a bug or have a suggestion? Open an issue on GitHub!
Libraries
- template_files/lib/core/interceptors/api_interceptor
- template_files/lib/core/routes/app_initial_binding
- template_files/lib/core/routes/app_pages
- template_files/lib/core/services/base_services
- template_files/lib/core/services/gs_services
- template_files/lib/core/utils/helpers
- template_files/lib/core/utils/model_helper
- template_files/lib/design/components/lifecycle_manager
- template_files/lib/design/constant/constant
- template_files/lib/design/constant/regx
- template_files/lib/design/services/extension
- template_files/lib/design/utils/app_assets
- template_files/lib/design/utils/app_text_theme
- template_files/lib/design/utils/app_theme
- template_files/lib/main
- template_files/lib/modules/demo/controller/demo_controller
- template_files/lib/modules/demo/data/demo_provider
- template_files/lib/modules/demo/data/demo_repository
- template_files/lib/modules/demo/data/model/demo_model
- template_files/lib/modules/demo/demo_binding
- template_files/lib/modules/demo/view/demo_screen
- template_files/lib/modules/splash/splash_screen