π― flutter_blueprint
Enterprise-grade Flutter app scaffolding CLI β generates production-ready Flutter projects with 43+ professional files, complete architecture, and best practices.
π± Note: CLI runs on desktop (Windows/Linux/macOS) to generate Flutter projects that support all platforms (Android, iOS, Web, Desktop).
π Quick Start
Installation
# Windows (PowerShell)
iex (irm 'https://rawgit.flutter-io.cn/chirag640/flutter_blueprint-Package/main/scripts/install.ps1')
# macOS / Linux
dart pub global activate flutter_blueprint
Create a Project
# Interactive wizard (recommended)
flutter_blueprint init
# Quick mode with options
flutter_blueprint init my_app --state riverpod --api --theme --tests
β¨ Key Features
| Category | Features |
|---|---|
| Architecture | Clean architecture, 43+ files, feature-based structure |
| State Management | Provider, Riverpod, or Bloc |
| API Layer | Dio + Auth/Retry/Logger interceptors, Universal API Configurator |
| Storage | LocalStorage + SecureStorage + optional Hive caching |
| UI Components | Theme system, reusable widgets, Material 3 |
| DevOps | GitHub Actions, GitLab CI, Azure Pipelines |
| Extras | Pagination, Analytics, Security utilities, i18n |
π οΈ CLI Commands
init - Create New Project
flutter_blueprint init <app_name> [options]
| Flag | Description |
|---|---|
--state <choice> |
State management: provider, riverpod, bloc |
--platforms <list> |
Target: mobile, web, desktop, all |
--ci <provider> |
CI/CD: github, gitlab, azure |
--api |
Include API client (prompts for backend type) |
--theme |
Include theme system |
--env |
Include environment config |
--tests |
Include test scaffolding |
--hive |
Include Hive offline caching |
--pagination |
Include pagination support |
--analytics <provider> |
Analytics: firebase, sentry |
--security <level> |
Security: basic, standard, enterprise |
π API Backend Presets
When --api is enabled, choose from built-in presets:
- Modern REST - HTTP 200 + JSON data
- Legacy .NET - success: true/false pattern
- Laravel - data wrapper, message field
- Django REST - results array, detail errors
- Custom - manual configuration
add feature - Add Features to Existing Project
flutter_blueprint add feature <name> [--api] [--no-data] [--no-domain]
π Generated Structure
my_app/
βββ lib/
β βββ main.dart
β βββ app/app.dart
β βββ core/
β β βββ api/ # API client + interceptors
β β βββ config/ # App config + env loader
β β βββ errors/ # Exceptions + failures
β β βββ routing/ # Router + guards
β β βββ storage/ # Local + secure storage
β β βββ theme/ # Colors, typography, themes
β β βββ utils/ # Logger, validators, extensions
β β βββ widgets/ # Reusable UI components
β βββ features/ # Feature modules
βββ test/ # Test scaffolding
βββ pubspec.yaml
π€ Team Collaboration
Share configurations across your team:
# Import team config
flutter_blueprint share import ./company_standard.yaml
# Create project from config
flutter_blueprint init my_app --from-config company_standard
π Documentation
- COLLABORATION_FEATURES.md
- PERFORMANCE_OPTIMIZATION.md
- ANALYTICS_IMPLEMENTATION.md
- HIVE_IMPLEMENTATION.md
- CONTRIBUTING.md
π License
MIT License - see LICENSE
π¬ Support
- π§ Email: chaudharychirag640@gmail.com
- π GitHub Issues
- π¬ Discussions
Made with β€οΈ for the Flutter community β