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

Global controllers #15

Closed Drolegc closed 3 years ago

Drolegc commented 3 years ago

Hi! There's a place for global controllers? For example, I need the user to be global, for that, I use a UserController with the user in it. Should I make a folder called global_controllers?

pradyotMobifyi commented 3 years ago

Yeah need to know the structure for global controllers or for initial bindings. Should we add it in the app/data/service or need to follow any other file structure.

kauemurakami commented 3 years ago

Thinking about these forms, yes, it would be a type of service auth (a session), so that you load this user throughout the application, and GetxService is exactly for that. So yes, here at github you already have this data / services / user_service.dart structure