This app gets along with Health & Beyond. It allows doctor
and patient
to easily access all features of Health & Beyond using this app.
- I made this
Flutter
app in short notice of a week. Had absoulutely no time to addcomments
. That's why, some stuff is very clean and some is a little messy. - Also, I didn't have any time to add
state management
. This is all done in one go. - I might re-make the entire project and add
state management
with bettercode
. - You may use my code but it must be free, publicly available and open source.
Check out the video presentation
- Introduction to Mobile Application at
15:27
- Project Structure at
15:55
- Mobile Application at
18:19
- Project Structure at
authentication
: Authentication (Login) fordoctor
andpatient
dashboard
: Dashboard which showsstatistics
anddiseases
in city and state using a pie charthistory
: Shows patient records by scanning theirqr code
orpatient id
profile
: Shows patient and doctor their respective profilesnotifications
: Shows notifications forappointments
andhealth events
add record
: Allows Doctor to add a newpatient record
I chose to implement sort of clean architecture in my project structure.
Project contains two main folders, core
and features
core
contains all core data such as string resources, color and theme data, app prefrerences.features
conatains allmodules
such as authentication, home, profile, notifications, etc.
This way, I can keep track of all features and easily manage them.
Each and every feature has 3 folders,
domain
: Contains all abstact classes formodels
andrepositories
and implementation forusecases
data
: Contains all implementation fordata sources
,models
andrepositories
presentation
: Contains all views inscreens
andwidgets
-
models
: Contains abstract classes fordata models
repositories
: Contains abstract classes forrepositories
usecases
: Conatins abstraction forusecase
-
models
: Contains implementation fordata models
repositories
: Contains implementation forrepositories
data sources
: Conatins abstraction and implementation forlocal and remote data sources
-
screens
: Containsviews
or mainlayout
widgets
: Contains complementingwidgets
that can be used insidemain widget
-
resources
: Containscolors
,dimensions
,strings
,styles
,theme data
andapp routes
preferences
: Contains functions forshared preferences
to sore data locallynetwork
: Containsdata checker
to check whether device is connected to internet or notusecases
: Contains abstact classes forusecase
errors
: Contains abstarct classes forexceptions
andfailures
requests
: Contains app requests that fetch the data fromapi
utils
: Containsutilities
such asrandom color generator
for pie chart