healsense
使用強大的藥物提醒應用程式按時服藥。採用 DDD 架構 + Drift + Riverpod + Go Router + Rxdart + 服務定位器 + Freezed,最終以 💙 完成
- 星標
- 101
- 分支
- 31
- 最近推送(UTC)
- 2026年8月5日
- 專案狀態
- 未封存
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
Flutter Healsense Application

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
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
分類
使用的依賴
依賴清單 37 項
- badges
^3.1.2 - cupertino_icons
^1.0.8 - drift
^2.3.0 - equatable
^2.0.5 - fimber
^0.7.0 - flutter_dotenv
^5.1.0 - flutter_local_notifications
^17.2.1 - flutter_localizations
{"sdk":"flutter"} - flutter_riverpod
^2.1.1 - flutter_screenutil
^5.9.3 - flutter_svg_provider
^1.0.7 - fpdart
^0.4.0 - freezed_annotation
^2.4.1 - geolocator
^12.0.0 - go_router
^14.2.1 - google_maps_flutter
^2.7.0 - http
^1.2.2 - intl
^0.20.2 - json_annotation
^4.9.0 - nil
^1.1.1 - path
^1.9.0 - path_provider
^2.1.3 - riverpod_annotation
^1.0.6 - rxdart
^0.28.0 - shared_preferences
^2.2.3 - shimmer
^3.0.0 - sqlite3_flutter_libs
^0.5.24 - timezone
^0.9.4 - url_launcher
^6.3.0 - build_runner開發依賴
^2.4.11 - drift_dev開發依賴
^2.3.3 - flutter_launcher_icons開發依賴
^0.13.1 - flutter_lints開發依賴
^4.0.0 - flutter_test開發依賴
{"sdk":"flutter"} - freezed開發依賴
^2.4.1 - json_serializable開發依賴
^6.8.0 - riverpod_generator開發依賴
^1.0.6
所在榜單
如何選擇適合專案的儲存庫?
先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
- 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
- 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
- 使用前在 GitHub 確認 README、授權條款與 Issues。
來源與維護
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗