Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clinic card screens #13

Open
wants to merge 170 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
c06768e
Merge pull request #15 from palladiumkenya/new_UI
NewtonMutugi Jul 16, 2024
9463919
Started the Period Tracker feature
Eugene600 Jul 23, 2024
1f9ad70
Added a Get Started Page for stating the features of the Period Plann…
Eugene600 Jul 23, 2024
d7cf627
added a menu for Period Planner
Eugene600 Jul 23, 2024
04eea22
added calendar on period planner screen and calendar as well
Eugene600 Jul 24, 2024
571ddd9
Added Carousel Slider but needs more improvement though
Eugene600 Jul 24, 2024
fc5ab7f
added showModalBottomSheet widget for logging mood, symptoms and disc…
Eugene600 Jul 25, 2024
39266d4
Added highlighting on ovulation, period and fertile days in the cale…
Eugene600 Jul 26, 2024
bc966e9
added another calendar to allow new users to log their previous period.
Eugene600 Jul 26, 2024
2edf0b2
Developed Algorithm for predicting various events in the menstrual cycle
Eugene600 Jul 31, 2024
5808f63
Ensuring the various events are being displayed in the calendar
Eugene600 Aug 1, 2024
6c764b1
Ensuring State of Track Period Screen responds to when user logs peri…
Eugene600 Aug 1, 2024
392b6c2
Managing state when user logs end of period
Eugene600 Aug 2, 2024
ffbf229
Enabling updating of period days for First Time users in Log Periods …
Eugene600 Aug 5, 2024
12c0a29
Handling Overdue Period Days
Eugene600 Aug 5, 2024
3b5ef8b
Added event utils to handle generating of new events
Eugene600 Aug 6, 2024
132a68d
Debugging
Eugene600 Aug 8, 2024
cb2433f
debugging2
Eugene600 Aug 9, 2024
ceda6b1
Handled Routing, needs more work though
Eugene600 Aug 9, 2024
1989a70
Allowing users to add next period days manually
Eugene600 Aug 9, 2024
d0fe060
Handling overlapping of previous cycles' predicted days and current c…
Eugene600 Aug 9, 2024
68520d9
Handling Selection of Multiple days by adding a Toggle Button
Eugene600 Aug 13, 2024
e9b12a0
Allowing autofilling of the next six period days if a user selects on…
Eugene600 Aug 13, 2024
3994e96
Removed selection of Multiple days.
Eugene600 Aug 15, 2024
9e75651
Preventing user from logging already selected period date from previo…
Eugene600 Aug 15, 2024
2d6858d
Restricting Users from selecting more than 7 period days.
Eugene600 Aug 15, 2024
0f59a2c
Adding an edit Periods screen but still needs a lot of work though.
Eugene600 Aug 16, 2024
7a7d4a0
Calendar Showing Events to be displayed in a Modal Bottom Sheet
Eugene600 Aug 19, 2024
d9ad57f
Preparing to merge with dev branch
Eugene600 Aug 20, 2024
15a590b
:ambulance: user provider refresh on login
Ogollah Aug 20, 2024
58f5e2c
Merge branch 'menstrual_calendar' into new_UI
Eugene600 Aug 20, 2024
0a9e5b9
Merge pull request #5 from Eugene600/new_UI
Eugene600 Aug 20, 2024
1dce2b9
:ambulance: user provider refresh on login
Ogollah Aug 20, 2024
ae2f6dd
Worked on making Algorithm more flexible.
Eugene600 Aug 21, 2024
f2e8a2d
:construction: Add chat hcw
Ogollah Aug 22, 2024
c135a4f
:ambulance: Fix VL lable
Ogollah Aug 22, 2024
fe69d97
Merge branch 'cho_rename_vl_lable' into nishauri_chat
Ogollah Aug 22, 2024
c014855
Merge pull request #24 from NewtonMutugi/new_UI
NewtonMutugi Aug 22, 2024
8a99b6a
Add chat user list
Ogollah Aug 22, 2024
2674fb1
Refactor BMICalculatorScreen to calculate user's age dynamically
NewtonMutugi Aug 22, 2024
c03c41f
Adjust Algorithm by adding a cap on the average cycle and period length
Eugene600 Aug 22, 2024
0f3dc36
Add age fetching functionality to BMICalculatorScreen
NewtonMutugi Aug 23, 2024
80d0f21
Add hcw user list
Ogollah Aug 23, 2024
d3d1f2c
Handled cases where user period days collides with fertile and ovulat…
Eugene600 Aug 23, 2024
409b9c6
Testing
Eugene600 Aug 23, 2024
a3c2afb
Adjusting a few Terminologies used in the Application
Eugene600 Aug 23, 2024
a5382b2
Updated user age module
NewtonMutugi Aug 26, 2024
db20661
Changed the routing for the application, made some few changes on the…
Eugene600 Aug 27, 2024
045ef9b
Handling cases whereby new users and regular users interact with the …
Eugene600 Aug 28, 2024
a605852
Merge pull request #6 from palladiumkenya/new_UI
Eugene600 Aug 28, 2024
9a44e83
Added Period History in the Menstrual Calendar Feature
Eugene600 Aug 29, 2024
8407c0f
Grouping the cycles by their years and making sure the latest cycle i…
Eugene600 Aug 29, 2024
7f17019
Started working on allowing editing of period days from history altho…
Eugene600 Aug 30, 2024
a881f2b
Ensuring every entry in the period history has its own card and makin…
Eugene600 Sep 2, 2024
5fc7f9f
Allowing users to edit their periods however there are some issues to…
Eugene600 Sep 2, 2024
3491056
Fix BMI fetch age, update program, reschedule appointment
Ogollah Sep 3, 2024
42aa01e
Merge branch 'menstrual_calendar' into version2_0_1
Ogollah Sep 3, 2024
931da26
Merge branch 'nishauri_chat' into version2_0_1
Ogollah Sep 3, 2024
72e9ab7
Merge branch 'bmi_fix' into version2_0_1
Ogollah Sep 3, 2024
ea8707d
redesign update program dialogue
Ogollah Sep 4, 2024
3df3ca6
Merge branch 'bmi_fix' into version2_0_1
Ogollah Sep 4, 2024
a9a998a
:construction: insight info on self screening
Ogollah Sep 4, 2024
53a1708
Fix overflow
Ogollah Sep 4, 2024
e9ffe0e
Merge branch 'bmi_fix' into version2_0_1
Ogollah Sep 4, 2024
64ca705
Worked on making Algorithm more flexible.
Eugene600 Aug 21, 2024
51bc26b
Adjust Algorithm by adding a cap on the average cycle and period length
Eugene600 Aug 22, 2024
02b1fbe
Handled cases where user period days collides with fertile and ovulat…
Eugene600 Aug 23, 2024
5c4250b
Testing
Eugene600 Aug 23, 2024
47809b9
Adjusting a few Terminologies used in the Application
Eugene600 Aug 23, 2024
baf77b6
Changed the routing for the application, made some few changes on the…
Eugene600 Aug 27, 2024
2f2f338
Handling cases whereby new users and regular users interact with the …
Eugene600 Aug 28, 2024
fe519f1
Added Period History in the Menstrual Calendar Feature
Eugene600 Aug 29, 2024
626d619
Grouping the cycles by their years and making sure the latest cycle i…
Eugene600 Aug 29, 2024
28bca99
Started working on allowing editing of period days from history altho…
Eugene600 Aug 30, 2024
b57cf68
Ensuring every entry in the period history has its own card and makin…
Eugene600 Sep 2, 2024
29c6b3c
Allowing users to edit their periods however there are some issues to…
Eugene600 Sep 2, 2024
0dd4e17
Merge branch 'palladiumkenya-version2_0_1' into menstrual_calendar
Eugene600 Sep 5, 2024
6ba97de
:construction: Add insight
Ogollah Sep 6, 2024
a2b68bb
Ensured the state updates in all the screens in use when user edits p…
Eugene600 Sep 6, 2024
38aaaf2
program update
Ogollah Sep 9, 2024
3f61bf2
Merge branch 'bmi_fix' into version2_0_1
Ogollah Sep 9, 2024
818e26d
Added a validation of ensuring a user cannot select future dates and …
Eugene600 Sep 9, 2024
c29fdd0
Add pop up dialogue on first installation
Ogollah Sep 10, 2024
12809de
Merge branch 'bmi_fix' into version2_0_1
Ogollah Sep 10, 2024
bdcdffd
Worked on making Algorithm more flexible.
Eugene600 Aug 21, 2024
a19e39e
Adjust Algorithm by adding a cap on the average cycle and period length
Eugene600 Aug 22, 2024
e65610c
Handled cases where user period days collides with fertile and ovulat…
Eugene600 Aug 23, 2024
287810b
Testing
Eugene600 Aug 23, 2024
ed411a6
Adjusting a few Terminologies used in the Application
Eugene600 Aug 23, 2024
37665f8
Changed the routing for the application, made some few changes on the…
Eugene600 Aug 27, 2024
f012502
Handling cases whereby new users and regular users interact with the …
Eugene600 Aug 28, 2024
d83118d
Added Period History in the Menstrual Calendar Feature
Eugene600 Aug 29, 2024
56e7f35
Grouping the cycles by their years and making sure the latest cycle i…
Eugene600 Aug 29, 2024
1542427
Started working on allowing editing of period days from history altho…
Eugene600 Aug 30, 2024
f6303ea
Ensuring every entry in the period history has its own card and makin…
Eugene600 Sep 2, 2024
1e5482c
Allowing users to edit their periods however there are some issues to…
Eugene600 Sep 2, 2024
cb0ecd6
Added a validation of ensuring a user cannot select future dates and …
Eugene600 Sep 10, 2024
22bd933
Added conditiion for period planner in self screening menu whereby it…
Eugene600 Sep 10, 2024
d4e35b7
:construction: insight
Ogollah Sep 11, 2024
c80ac32
Handled the calculation of cycle length and period length together wi…
Eugene600 Sep 11, 2024
64a5fae
Ensuring the latest cycle event is display in the history only if use…
Eugene600 Sep 12, 2024
736bee2
Handling period overdue days by using shared preferences needs more w…
Eugene600 Sep 12, 2024
0a5c009
settings
Ogollah Sep 13, 2024
6b76154
fix chat bot
Ogollah Sep 16, 2024
1ab55e9
:construction: provider facing
Ogollah Sep 17, 2024
4cc263e
Adjusting the menstrual calendar feature to get, post and edit cycles…
Eugene600 Sep 24, 2024
4ab071b
:construction: add app request confirmation dialog
Ogollah Sep 26, 2024
4848b6c
Added a new user screen to handle new users using application and sce…
Eugene600 Sep 30, 2024
3308206
Removed new user screen and instaed added a condition for displaying …
Eugene600 Sep 30, 2024
f29b2b8
Merge pull request #9 from palladiumkenya/version2_0_1
Eugene600 Sep 30, 2024
4191b77
:construction: add dawa drop request management
Ogollah Sep 30, 2024
bbbb01d
:construction: add dawa drop request management
Ogollah Sep 30, 2024
1a45849
custom count budge
Ogollah Sep 30, 2024
46a651f
custom count budge
Ogollah Sep 30, 2024
0608bb2
:construction: shr
Ogollah Oct 11, 2024
2589211
:construction: Add provider location selectoin
Ogollah Oct 14, 2024
c1881a0
Add provider details
Ogollah Oct 15, 2024
0d35940
:construction: Design screening main menu
Ogollah Oct 18, 2024
3d9cd43
move blood sugar to screen
Ogollah Oct 18, 2024
87ff193
refactor bs
Ogollah Oct 22, 2024
563bdda
move bp to self screening module
Ogollah Oct 22, 2024
6960bcf
:construction: ref blood pressure
Ogollah Oct 23, 2024
12d01db
:construction: refactor custom App Bar
Ogollah Oct 23, 2024
451c215
refacor blood pressure records
Ogollah Oct 23, 2024
55bb941
:construction: add blood sugar records
Ogollah Oct 23, 2024
b48a5e2
:constaruction: Add bp input form
Ogollah Oct 24, 2024
b5e87ce
add notes controller
Ogollah Oct 24, 2024
f12b6b3
:construction: add input form for blood sugar
Ogollah Oct 24, 2024
4cac28a
Add condition to check current entries in bp and bs
Ogollah Oct 25, 2024
5b3b4cd
add advice for blood pressure satus.
Ogollah Oct 25, 2024
69e7378
:construction: conditional advice ps
Ogollah Oct 28, 2024
23d69d6
:construction: Start my clinic card ref
Ogollah Oct 28, 2024
a9a8469
Add health record screen
Ogollah Oct 28, 2024
e12882b
Add validations BS
Ogollah Oct 29, 2024
7566d2c
Move BMI to Self screening module
Ogollah Oct 31, 2024
0e257b5
Move BMI to Self screening module
Ogollah Oct 31, 2024
cb6fb34
Add BMI card on self screening screen
Ogollah Oct 31, 2024
062c13d
Refactor BMI
Ogollah Nov 4, 2024
06c487c
Add divider on health cards
Ogollah Nov 5, 2024
a54d0fa
Merge pull request #9 from palladiumkenya/self_screen_ref
Ogollah Nov 5, 2024
c31b1a0
:construction: Clinic card
Ogollah Nov 5, 2024
0407443
:construction: Add date filter
Ogollah Nov 7, 2024
3534595
:construction: (feat) add dependant
Ogollah Nov 11, 2024
556216f
dependant
Ogollah Nov 12, 2024
f28a7be
font-size
vicky-ogutu Nov 12, 2024
74041ca
(fix) fix nav bar widget
Ogollah Nov 12, 2024
93e0ae2
(feat) Add vitals records screen
Ogollah Nov 12, 2024
cff5b81
Immunization
vicky-ogutu Nov 12, 2024
efbf4c4
paths-range
vicky-ogutu Nov 12, 2024
73a4fb8
(cho) Refactor selected date range function
Ogollah Nov 13, 2024
6296c7d
medication
vicky-ogutu Nov 13, 2024
926d909
(feat) add allergy screen
Ogollah Nov 13, 2024
88f7919
(feat) Add lab results screen
Ogollah Nov 13, 2024
08bf755
(cho) Add icons on item filter
Ogollah Nov 13, 2024
7b45b3f
(cho) Add values to constants
Ogollah Nov 15, 2024
ffb2e5a
(feat) Add BMI graphs
Ogollah Nov 15, 2024
8326560
:construction: consume bmi filter end point
Ogollah Nov 26, 2024
7d68eda
Merge pull request #10 from palladiumkenya/clinic_card_fer
Ogollah Nov 26, 2024
3e39b2b
dependent-screens
vicky-ogutu Dec 12, 2024
fdc6a4a
scrn_optimized
vicky-ogutu Jan 6, 2025
0f45fae
icons-change
vicky-ogutu Jan 8, 2025
3641e4c
icon_change
vicky-ogutu Jan 8, 2025
de026c5
bmi
Ogollah Dec 5, 2024
3d6c81c
bp-add
Ogollah Jan 9, 2025
131e14a
bs_input_screen_Optimized
vicky-ogutu Jan 10, 2025
9137d9f
bmi_fetch
Ogollah Dec 5, 2024
2217fa7
provider-Redesign
vicky-ogutu Jan 17, 2025
592fa09
provider_color
vicky-ogutu Jan 18, 2025
e4f9487
screening_UI
vicky-ogutu Jan 20, 2025
48aa90f
FD_subtitle_omitted
vicky-ogutu Jan 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,52 +109,67 @@ class ClinicCardScreen extends HookConsumerWidget {
}

return Scaffold(
body: Column(
children: [
const CustomAppBar(
title: "My Clinic Card 👨🏾‍💼",
color: Constants.clinicCardBgColor,
subTitle: "Access all your medical details",
svgPathGroup: "assets/images/group_clinic_card.svg",
),
Expanded(
child: SingleChildScrollView(
child: Stack(
alignment: AlignmentDirectional.center,
children: [
Padding(
padding: const EdgeInsets.all(10.0),
child: Column(
// crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.start,
children: [
Row(
children: [Text("Health Records", style: theme.textTheme.titleMedium),
]
),
const SizedBox(height: 10),
ItemList(items: items, path: paths, svgAsset: icons),
const SizedBox(height: 10),
Row(
children: [Text("Shared With Me", style: theme.textTheme.titleMedium),
]
),
const ItemList(items: ["Eric Muthomi"], svgAsset: ["assets/images/clinicCardCard.svg"],path: [RouteNames.MY_DEPENDANT_CLINIC_CARD], color: Constants.clinicCardBgColor, relationship: ["Next of Kin"],),
],
body: SingleChildScrollView(
child: Column(
children: [
const CustomAppBar(
title: "My Clinic Card 👨🏾‍💼",
color: Constants.clinicCardBgColor,
subTitle: "Access all your medical details",
svgPathGroup: "assets/images/group_clinic_card.svg",
),
Padding(
padding: const EdgeInsets.all(10.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
children: [
Expanded(
child: Text(
"Health Records",
style: theme.textTheme.titleMedium,
overflow: TextOverflow.ellipsis, // Prevents text overflow.
maxLines: 1,
),
),
],
),
const SizedBox(height: 10),
ItemList(items: items, path: paths, svgAsset: icons),
const SizedBox(height: 10),
Row(
children: [
Expanded(
child: Text(
"Shared With Me",
style: theme.textTheme.titleMedium,
overflow: TextOverflow.ellipsis, // Prevents overflow.
maxLines: 1,
),
),
),
],
)
],
),
const ItemList(
items: ["Eric Muthomi"],
svgAsset: ["assets/images/clinicCardCard.svg"],
path: [RouteNames.MY_DEPENDANT_CLINIC_CARD],
color: Constants.clinicCardBgColor,
relationship: ["Next of Kin"],
),
],
),
),
),
],
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: _reloadData,
child: const Icon(Icons.refresh),
tooltip: 'Refresh Data',
),
);

},
error: (error, _) => _buildErrorState(context, error.toString(), _reloadData),
loading: () => _buildLoadingState(context, theme),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ class _VisitHealthRecord extends State<AllergyHealthRecord> {
children: [
_buildDateRow(record.visitDate, theme),
const SizedBox(height: Constants.SPACING),
_buildHospitalRow(record.facility, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
// _buildHospitalRow(record.facility, theme),
// const SizedBox(height: Constants.SPACING),
// const Divider(),
_buildAllergyList(record.allergies, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ class _ConditionHealthRecordState extends State<ConditionHealthRecord> {
children: [
_buildDateRow(record.visitDate, theme),
const SizedBox(height: Constants.SPACING),
_buildHospitalRow(record.facility, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
// _buildHospitalRow(record.facility, theme),
// const SizedBox(height: Constants.SPACING),
// const Divider(),
_buildConditionList(record.conditions, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ class _ImmunizationTestState extends State<ImmunizationTest> {
return Column(
children: [
_buildDateRow(record.visitDate, theme),
// const SizedBox(height: Constants.SPACING),
//_buildHospitalRow(record.facility, theme),
const SizedBox(height: Constants.SPACING),
//const Divider(),
// _buildHospitalRow(record.facility, theme),
// const SizedBox(height: Constants.SPACING),
// const Divider(),
_buildConditionList(record.immunizations, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ class _LabResultHealthRecord extends State<LabResultHealthRecord> {
children: [
_buildDateRow(record.visitDate, theme),
const SizedBox(height: Constants.SPACING),
_buildHospitalRow(record.facility, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
// _buildHospitalRow(record.facility, theme),
// const SizedBox(height: Constants.SPACING),
// const Divider(),
_buildConditionList(record.labResults, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ class _MedicationRecordState extends State<MedicationRecord> {
children: [
_buildDateRow(record.visitDate, theme),
const SizedBox(height: Constants.SPACING),
_buildHospitalRow(record.facility, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
// _buildHospitalRow(record.facility, theme),
// const SizedBox(height: Constants.SPACING),
// const Divider(),
_buildMedicationList(record.medications, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ class _VitalHealthRecord extends State<VitalHealthRecord> {
children: [
_buildDateRow(record.visitDate, theme),
const SizedBox(height: Constants.SPACING),
_buildHospitalRow(record.facility, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
// _buildHospitalRow(record.facility, theme),
// const SizedBox(height: Constants.SPACING),
// const Divider(),
_buildVitalList(record.vitals, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ class _AllergyRshipRecordState extends State<AllergyRshipRecord> {
children: [
_buildDateRow(record.visitDate, theme),
const SizedBox(height: Constants.SPACING),
_buildHospitalRow(record.facility, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
// _buildHospitalRow(record.facility, theme),
// const SizedBox(height: Constants.SPACING),
// const Divider(),
_buildAllergyList(record.allergies, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ class _ConditionRshipState extends State<ConditionRship> {
children: [
_buildDateRow(record.visitDate, theme),
const SizedBox(height: Constants.SPACING),
_buildHospitalRow(record.facility, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
// _buildHospitalRow(record.facility, theme),
// const SizedBox(height: Constants.SPACING),
// const Divider(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We remove commented out code

_buildConditionList(record.conditions, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ class _ImmunizationRshipState extends State<ImmunizationRship> {
return Column(
children: [
_buildDateRow(record.visitDate, theme),
const SizedBox(height: Constants.SPACING),
// _buildHospitalRow(record.facility, theme),
// const SizedBox(height: Constants.SPACING),
//_buildHospitalRow(record.facility, theme),
const SizedBox(height: Constants.SPACING),
//const Divider(),
// const Divider(),
_buildConditionList(record.immunizations, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ class _LabRshpRecordState extends State<LabRshpRecord> {
children: [
_buildDateRow(record.visitDate, theme),
const SizedBox(height: Constants.SPACING),
_buildHospitalRow(record.facility, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
// _buildHospitalRow(record.facility, theme),
// const SizedBox(height: Constants.SPACING),
// const Divider(),
_buildConditionList(record.labResults, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ class _MedicationRshipState extends State<MedicationRship> {
children: [
_buildDateRow(record.visitDate, theme),
const SizedBox(height: Constants.SPACING),
_buildHospitalRow(record.facility, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
// _buildHospitalRow(record.facility, theme),
// const SizedBox(height: Constants.SPACING),
// const Divider(),
_buildMedicationList(record.medications, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ class _VitalHealthRshipRecordState extends State<VitalHealthRshipRecord> {
children: [
_buildDateRow(record.visitDate, theme),
const SizedBox(height: Constants.SPACING),
_buildHospitalRow(record.facility, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
// _buildHospitalRow(record.facility, theme),
// const SizedBox(height: Constants.SPACING),
// const Divider(),
_buildVitalList(record.vitals, theme),
const SizedBox(height: Constants.SPACING),
const Divider(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ class _BloodSugarScreenState extends ConsumerState<BloodSugarScreen> {
Row _buildLastRecordRow(displayedData, ThemeData theme) {
return Row(
children: [
Text("Last Record Date:", style: theme.textTheme.bodyLarge),
Expanded(
child:Text("Last Record Date:", style: theme.textTheme.bodyLarge),),
const SizedBox(width: 4),
Text(DateFormat('dd MMM yyyy').format(displayedData.created_at), style: theme.textTheme.bodyLarge!.copyWith(color: Colors.grey, fontWeight: FontWeight.bold)),
],
Expand Down Expand Up @@ -213,12 +214,22 @@ class _BloodSugarScreenState extends ConsumerState<BloodSugarScreen> {
child: ListTile(
title: Row(
children: [
Text(
'Your Blood Sugar Levels are ',
style: theme.textTheme.bodyLarge!.copyWith(fontWeight: FontWeight.w600),
Column(
crossAxisAlignment: CrossAxisAlignment.start, // Align to the start of the column
children: [
Text(
'Your Blood Sugar Levels are',
style: theme.textTheme.bodyMedium!.copyWith(fontWeight: FontWeight.w600),
overflow: TextOverflow.ellipsis,
),
const SizedBox(height: 4), // Add spacing between the lines
Text(
status,
style: theme.textTheme.bodyMedium!.copyWith(color: Colors.green),
overflow: TextOverflow.ellipsis,
),
],
),
const SizedBox(width: 4),
Text(status, style: theme.textTheme.bodyLarge!.copyWith(color: Colors.green)),
],
),
subtitle: Text(advice, style: theme.textTheme.bodyMedium),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class BloodSugarRecords extends StatelessWidget {
child: Container(
color: Constants.bgColor,
child: ListView.builder(
shrinkWrap: true,
itemCount: data.length,
itemBuilder: (context, index) {
final bs = data[index];
Expand All @@ -118,33 +119,36 @@ class BloodSugarRecords extends StatelessWidget {
height: 20,
),
title: ExpansionTile(
title: Row(
title:Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
RichText(
Expanded( // Wrap RichText with Expanded
child: RichText(
text: TextSpan(
children: [
TextSpan(
text: '${_convertToMMOL(bs.level)}',
style: theme.textTheme.titleMedium!.copyWith(color: _getStatusColor(status))
style: theme.textTheme.titleMedium!
.copyWith(color: _getStatusColor(status)),
),

TextSpan(
text: ' mmol/L',
style: theme.textTheme.titleSmall
style: theme.textTheme.titleSmall,
),
]
)
],
),
),
),
// Text(
// "${bs.level}",
// style: theme.textTheme.titleMedium,
// ),
Text(
DateFormat('dd MMM yy HH:mm').format(DateTime.parse(bs.created_at.toString()),), style: theme.textTheme.bodyMedium!.copyWith(color: Colors.grey),
DateFormat('dd MMM yy HH:mm').format(
DateTime.parse(bs.created_at.toString()),
),
style: theme.textTheme.bodyMedium!.copyWith(color: Colors.grey),
overflow: TextOverflow.ellipsis, // Add ellipsis if text is too long
),
],
),

children: <Widget>[
ListTile(
title: bs.condition != null && bs.condition!.isNotEmpty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class BloodPressureRecords extends StatelessWidget {
child: Container(
color: Constants.bgColor,
child: ListView.builder(
shrinkWrap: true,
itemCount: data.length,
itemBuilder: (context, index) {
final bp = data[index];
Expand All @@ -71,12 +72,16 @@ class BloodPressureRecords extends StatelessWidget {
title: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
Expanded(
child: Text(
"${bp.systolic}/${bp.diastolic}",
style: theme.textTheme.titleMedium,
style: theme.textTheme.titleSmall,
),
),
Text(
DateFormat('dd MMM yy HH:mm').format(DateTime.parse(bp.created_at.toString()),), style: theme.textTheme.bodyMedium!.copyWith(color: Colors.grey),
DateFormat('dd MMM yy HH:mm').format(DateTime.parse(bp.created_at.toString()),),
style: theme.textTheme.bodyMedium!.copyWith(color: Colors.grey),
overflow: TextOverflow.ellipsis,
),
],
),
Expand Down
Loading