FLUTTER ECOSYSTEM

iamnijat/healsense

使用功能强大的药物提醒应用程序按时服药。采用 DDD 架构 + Drift + Riverpod + Go Router + Rxdart + 服务定位器 + Freezed,最终以 💙 完成

healsense 项目封面
Stars
101
Forks
31
最近推送(UTC)
2026年8月5日
项目状态
未归档
Nijat Namazzade GitHub avatar
GITHUB User

Nijat Namazzade ↗

@flutter @react-native engineer, interested in @nodejs

Baku, Azerbaijan官方网站 ↗
语言DartC++CMakeSwiftRubyHTMLCKotlinObjective-C

技术话题

使用的依赖

依赖清单 37 项

所在榜单

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

GitHub Workflow Status (branch) GitHub forks GitHub stars GitHub watchers GitHub contributors GitHub last commit GitHub top language

Flutter Healsense Application

Frame 1

Instructions

Every code structure for this application is open source apart from GOOGLE_MAPS_API_KEY. Since this is an application in production, you must get GOOGLE_MAPS_API_KEY, create .env file on the top of the project, and include the key right there for running the app successfully.

Supported Null safety

Project architecture (DDD Architecture Approach)
1. Why:
* We want to determine what types of database that we use for storage (might want to change it later on)
* We want to adhere to SOLID principles since we are using OOP for this project.
* We want to ensure that UI layers do not care what is going on at the data layer at all.
* We might want to separate each layer into different packages.
2. Application - Di - Domain - Infrastructure - L10N - Presentation.
3. Presentation layer consist of
* Pages
* Widgets
4. Domain layer
* Core (Value objects, Failures)
* Repositories interface
* Entities
* Typically one function, but can be more if functions are related.
* Remember, one class has one responsibility only.
5. Infrastructure layer
* Core
* Data Source
    * locals (Database)
    * remotes (API)
* Repositories (Implementation from Domain layer)
* Models
* Services
6. Application layer
* State Management solution (Riverpod Binding Framework)
* States according to that framework
* Notifiers according to that framework
7. More insight of layers

DDD-Flutter-Diagram-v3

DI pattern

Dependency Injection is a great design pattern that allows us to eliminate rigid dependencies between elements and it makes the application more flexible, easy to expand scales and maintain. In the project we use Plugin injectable and get_it to implement DI and we have also defined classes so you can easily implement DI in the DI layer.

Routes

The project has predefined Named routes (Go Router)

resources
  * All resources (images, fonts, videos, ...) must be placed in the assets class
Getting started

Get dependencies and generate necessary files.

We'll handle the generation of required files for 🚀 your onboarding!

Localization

Using this library to handle multi-languages. Follow this guide to understand and config languages files


You've done entire steps correctly and I make sure that this project will have paramount effect on your progress learning Flutter