Flutter Modular
Get the Flutter Modular into your VS Code.
Welcome to Flutter Modular
The Modular Generator is a dynamic Visual Studio Code extension tailored specifically for developers keen on clean architecture. This extension brings a host of streamlined, automated routines, empowering you to focus on your core development tasks.
What is Modular?
Modular proposes to solve two problems:
- Modularized routes.
- Modularized Dependency Injection.
In a monolithic architecture, where we have our entire application as a single module, we design our software in a quick and elegant way, taking advantage of all the amazing features of Flutter💙. However, producing a larger app in a "monolithic" way can generate technical debt in both maintanance and scalability. With this in mind, developers adopted architectural strategies to better divide the code, minimizing the negative impacts on the project's maintainability and scalability..
By better dividing the scope of features, we gain:
- Improved understanding of features.
- Less breaking changes.
- Add new non-conflicting features.
- Less blind spots in the project's main business rule.
- Improved developer turnover.
Features
lib/
├─ main.dart
└─ app/
├─ modules/
│ └─ home_module/
│ ├─ home_page.dart
│ ├─ home_contreller.dart
│ └─ home_module.dart
│
├─ app_module.dart
└─ app_widget.dart
modules/
└─ {module_name}/
├─ {page_name}_page.dart
├─ {module_name}_mudule.dart
└─ {controller_name}_controller.dart
State Maneagasd
Now
- Signals ✅
- MobX ⚒️ In Progress
In the future
GetX
Riverpod
Triple
Cubit
Provider
Continuous Development
The Modular Generator is under active development, with plans to introduce more customization options:
- Create a Service (CRUD)
- Create a Repository (CRUD)
- Create a page for an existing Module
- Remove a Module
- Inserting Module as ModuleRoute
Support and Feedback