starter_template
                                
                                
                                
                                    starter_template copied to clipboard
                            
                            
                            
                        A Flutter starter app that includes support for an HTTP client, themes, routing, localization, and dependency injection.
Starter Template
A Flutter starter app that includes support for an HTTP client, themes, routing, localization, and dependency injection.
Brick Uses:
- dio as an HTTP client
 - pretty_dio_logger as a dio interceptor
 - auto_route for routing
 - get_it for dependency injection
 - envied for secure handling of environment variables
 - very_good_analysis for lint rules
 
Project Structure
- "app" folder holds files specific to this particular application.
 - "core" folder contains application-agnostic code that can be reused in other projects.
 - "feature" folder represents the app's feature set.
 
How to use 🚀
Make sure you have the mason_cli installed.
dart pub global activate mason_cli
Add starter_template to your library
mason add starter_template
Generate your brick
mason make starter_template
Warning ⚠️
Ensure the environment/ folder is included in your .gitignore to protect sensitive configuration
Variables ✨
| Variable | Description | Default | Type | 
|---|---|---|---|
project_name | 
Project Name | Starter Template | string | 
description | 
Project description | A new Flutter project. | string | 
organization | 
Organization of the project | com.example | string | 
Output 📦
📦lib
 ┣ 📂app
 ┃ ┣ 📂constants
 ┃ ┃ ┗ 📜string_constants.dart
 ┃ ┣ 📂environment
 ┃ ┃ ┣ 📜app_environment.dart
 ┃ ┃ ┣ 📜development_environment.dart
 ┃ ┃ ┣ 📜development_environment.g.dart
 ┃ ┃ ┣ 📜production_environment.dart
 ┃ ┃ ┗ 📜production_environment.g.dart
 ┃ ┣ 📂l10n
 ┃ ┃ ┣ 📂arb
 ┃ ┃ ┃ ┣ 📜app_en.arb
 ┃ ┃ ┃ ┗ 📜app_tr.arb
 ┃ ┃ ┗ 📜l10n.dart
 ┃ ┣ 📂router
 ┃ ┃ ┣ 📜app_router.dart
 ┃ ┃ ┗ 📜app_router.gr.dart
 ┃ ┣ 📂theme
 ┃ ┃ ┣ 📂base
 ┃ ┃ ┃ ┗ 📜base_theme.dart
 ┃ ┃ ┣ 📂dark
 ┃ ┃ ┃ ┗ 📜dark_theme.dart
 ┃ ┃ ┗ 📂light
 ┃ ┃ ┃ ┗ 📜light_theme.dart
 ┃ ┗ 📂view
 ┃ ┃ ┗ 📜app.dart
 ┣ 📂core
 ┃ ┣ 📂clients
 ┃ ┃ ┗ 📂network
 ┃ ┃ ┃ ┗ 📜network_client.dart
 ┃ ┣ 📂extensions
 ┃ ┃ ┗ 📜context_extensions.dart
 ┃ ┗ 📂utils
 ┃ ┃ ┣ 📂device_info
 ┃ ┃ ┃ ┗ 📜device_info_utils.dart
 ┃ ┃ ┗ 📂package_info
 ┃ ┃ ┃ ┗ 📜package_info_utils.dart
 ┣ 📂feature
 ┃ ┗ 📂home
 ┃ ┃ ┣ 📂model
 ┃ ┃ ┃ ┗ 📜.gitkeep
 ┃ ┃ ┣ 📂view
 ┃ ┃ ┃ ┗ 📜home_view.dart
 ┃ ┃ ┗ 📂view_model
 ┃ ┃ ┃ ┗ 📜.gitkeep
 ┣ 📜bootstrap.dart
 ┣ 📜locator.dart
 ┣ 📜main_development.dart
 ┗ 📜main_production.dart
Contributing
Contributions are always welcomed and appreciated!