Blood Mate Frontend Repository
- Network : Dio
- Local Storage Management : Hive
- State Management : Provider
- Base on MVVM, and Repository
- 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.
- 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.
- 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.
If you want to add models for api results
- Freezed Annotation
flutter pub get
flutter run --dart-define=BASE_URL='Bloodmate Server Endpoint'