Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.14 KB

README.md

File metadata and controls

33 lines (25 loc) · 1.14 KB

Blood-Mate-Frontend

Blood Mate Frontend Repository

Tech Dependences

  1. Network : Dio
  2. Local Storage Management : Hive
  3. State Management : Provider

App Architecture

  • Base on MVVM, and Repository

Model View ViewModel Image

View

  • An app is made up of pages that contain multiple widgets. The view displays data received from the ViewModel and sends input received from the user to the ViewModel. In other words, the view does not get involved in processing the data.

ViewModel

  • Corresponds to a page 1:1, but the widgets within the page share one ViewModel. The ViewModel processes input data received from the view and sends it to the server or passes data received from the server to the view.

Repository

  • Contains APIs for data that ViewModel uses. Communicates with the server using the Dio package and can also use data from local storage. Local storage is managed using the Hive package.

Api Models

If you want to add models for api results

  • Freezed Annotation

Getting Started

flutter pub get
flutter run --dart-define=BASE_URL='Bloodmate Server Endpoint'