kauemurakami / getx_pattern

Design pattern designed to standardize your projects with GetX on Flutter.
https://kauemurakami.github.io/getx_pattern
1k stars 235 forks source link

For larger project #16

Closed phuongphally closed 3 years ago

phuongphally commented 3 years ago

I agree with your good structures. But for larger project should be compare like

Example smaller project

Controllers src/controllers/customer.dart src/controllers/user.dart src/controllers/order.dart

Repositories src/repositories/customer.dart src/repositories/user.dart src/repositories/order.dart

Bindings src/bindings/customer.dart src/bindings/user.dart src/bindings/order.dart ......

Larger project

src/customer/controller/customer_controller.dart src/customer/repository/customer_repository.dart src/customer/binding/customer_controller.dart

src/user/controller/user_controller.dart src/user/repository/user_repository.dart src/user/binding/user_controller.dart

src/order/controller/order_controller.dart src/order/repository/order_repository.dart src/order/binding/order_controller.dart ......

kauemurakami commented 3 years ago

Yes yes, thinking about it our friend william silva put the proposal in modules, sign separating by modules, formed by controller, page, binding and reusable or componentized widgets in that module. In the readme in English on github, it has only the structure in modules, on the website each implementation has a written tab, packages and modules selecting you can see the two different architectures. In packages is the one you mentioned, especially for small projects and unviable for large projects. here is an example of the modular structure. app