Skip to content

Blood-Mate/blood-mate-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages