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.
- Install Modular ๐ฅ
lib/
โโ main.dart
โโ app/
โโ module/
โ โโ {module_name}/
โ โโ views/
โ โ โโ {view_name}_page.dart
โ โ
โ โโ {module_name}_module.dart
โ
โโ app_module.dart
โโ app_routes.dart
โโ app_widget.dart
Choose a module or create one and follow the prompts to update the binds and routes.
-
Either
bind
orpage
prompt will ask you a list of names (without suffix!), separate each name with ','. Ex: 'user, auth'. -
All the pages will be generated with the Suffix 'Page'. Aditionally. The route path will automatically be added in the app_routes.dart ๐ฅณ.
-
All the binds will be generated with the choosen Suffix (can be custom).
Obs: There are no templates. Just empty classes for binds and a StatelessWidget for page.
The Modular Generator is under active development, with plans to introduce more customization options:
- Custom Suffix and Folder Names โ
- Custom Interfaces
- Remove a Module
- Inserting Module as ModuleRoute
- Custom Template defined by path + suffix
- Visual Studio Code version 1.65.0 or later
This project is licensed under the MIT License.
- Report issues on the GitHub repository
- Contact the author at [email protected]
Contributions are welcome! Check out the repository and feel free to submit pull requests or create issues.