OTTAA-Project / ottaa_project_flutter

Join us to create the first predictive augmentative communication platform for speech-impaired children!
https://ottaa-project.github.io/
GNU General Public License v3.0
10 stars 4 forks source link

Clean Architecture #116

Closed emirchus closed 1 year ago

emirchus commented 1 year ago

Creation of clean architecture.

About architecture:

Application:

Within the application, we are going to implement, use and adapt the whole part of libraries, core and flutter Examples: lib/application/repositories/auth_repository.dart Implementation of authentication services lib/application/service/auth_service.dart Implementation of auth abstract class lib/application/locator.dart Registration of owns services, auth, i18n, about, etc.

Presentation:

In presentation, we will implement the screens, views and widgets. For state management we use riverpod Examples: lib/presentation/screens/login/login_screen.dart Just the login screen lib/presentation/screens/login/ui/sign_in_button.dar Login button by authenticator type. Here we implement the authentication status handler and use the riverpod widget

Core: