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 159 commits into
base: master
Choose a base branch
from
Open

Clinic card screens #13

wants to merge 159 commits into from

Conversation

vicky-ogutu
Copy link
Contributor

all screens for dependent's clinic-card

NewtonMutugi and others added 30 commits July 16, 2024 10:07
Kept the range selection of days
@vicky-ogutu vicky-ogutu requested a review from Ogollah December 12, 2024 00:25
@Ogollah
Copy link
Contributor

Ogollah commented Dec 12, 2024

Can you share some few screens?

Copy link
Contributor

@Ogollah Ogollah left a comment

Choose a reason for hiding this comment

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

And did you fix the responsiveness, the over flows on the self screening module?

Copy link
Contributor

Choose a reason for hiding this comment

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

Are we still using static data? Kindly check. We want to do away with most of the static data files.

@@ -328,7 +328,7 @@ class _ChatScreenState extends ConsumerState<ChatScreen> {
setState(() {
_consent = !_consent;
});
_updateConsent(type == ConsentType.accept ? true : false);
_updateConsent(_consent);
Navigator.of(context).pop();
},
child: const Text('Yes'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we have some of these texts as constatnts

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we are not using this file we can delete it.

Comment on lines +52 to +82
final Map<String, String> svgMapping = {
"allergies": "assets/images/boldDuotoneMedicineVirus.svg",
"immunization": "assets/images/boldDuotoneMedicineSyringe.svg",
"conditions": "assets/images/boldDuotoneMedicineStethoscope.svg",
"labResults": "assets/images/boldDuotoneMedicineTestTube.svg",
"medications": "assets/images/boldDuotoneMedicineJarOfPills2.svg",
"procedures": "assets/images/boldDuotoneMedicineBone.svg",
"vitals": "assets/images/boldDuotoneMedicineHeartPulse2.svg"
};

final List<String> items = [
"Allergies",
"Conditions",
"Immunizations",
"Lab Results",
"Medications",
"Procedures",
"Vitals"
];

final List<String> icons = [
// "assets/images/boldDuotoneFoldersFolderPathConnect.svg",
"assets/images/boldDuotoneMedicineVirus.svg",
"assets/images/boldDuotoneMedicineStethoscope.svg",
"assets/images/boldDuotoneMedicineSyringe.svg",
"assets/images/boldDuotoneMedicineTestTube.svg",
"assets/images/boldDuotoneMedicineJarOfPills2.svg",
"assets/images/boldDuotoneMedicineBone.svg",
"assets/images/boldDuotoneMedicineHeartPulse2.svg"
];

Copy link
Contributor

Choose a reason for hiding this comment

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

We need to think of a better way to present this.

Comment on lines +52 to +92
final Map<String, String> svgMapping = {
"allergies": "assets/images/boldDuotoneMedicineVirus.svg",
"conditions": "assets/images/boldDuotoneMedicineStethoscope.svg",
"immunization": "assets/images/boldDuotoneMedicineSyringe.svg",
"labResults": "assets/images/boldDuotoneMedicineTestTube.svg",
"medications": "assets/images/boldDuotoneMedicineJarOfPills2.svg",
"procedures": "assets/images/boldDuotoneMedicineBone.svg",
"vitals": "assets/images/boldDuotoneMedicineHeartPulse2.svg"
};

final List<String> items = [
"Allergies",
"Conditions",
"Immunizations",
"Lab Results",
"Medications",
"Procedures",
"Vitals"
];

final List<String> icons = [
"assets/images/boldDuotoneMedicineVirus.svg",
"assets/images/boldDuotoneMedicineStethoscope.svg",
"assets/images/boldDuotoneMedicineSyringe.svg",
"assets/images/boldDuotoneMedicineTestTube.svg",
"assets/images/boldDuotoneMedicineJarOfPills2.svg",
"assets/images/boldDuotoneMedicineBone.svg",
"assets/images/boldDuotoneMedicineHeartPulse2.svg"
];

final List<String> paths = [
RouteNames.ALLERGY_HEALTH_RSHIP_RECORD,
RouteNames.HEALTH_RSHIP_RECORD,
RouteNames.IMMUNIZATION_RSHIP_RECORD,
RouteNames.LAB_RESULTS_HEALTH_RSHIP_RECORD,
RouteNames.MEDICATION_RSHIP_RECORD,
RouteNames.PROCEDURE_RSHIP_RECORD,
RouteNames.VITAL_HEALTH_RSHIP_RECORD,

];

Copy link
Contributor

Choose a reason for hiding this comment

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

We think on how to simplify this

children: [
_buildDateRow(record.visitDate, theme),
const SizedBox(height: Constants.SPACING),
_buildHospitalRow(record.facility, theme),
Copy link
Contributor

Choose a reason for hiding this comment

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

We were to remove the facility names from the cards.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

DependentClinicCard.mp4

Yeah, next pr will resolve this and screen_overflows

Copy link
Contributor

Choose a reason for hiding this comment

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

Since we are merging to master don't you think we should just fix them in this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This can also work, so let me highlight the specific items to be resolve first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants