fixed errors

fatima
Fatimah.Alshammari 1 week ago
parent 838929591a
commit d027415302

@ -1499,5 +1499,6 @@
"selectTime": "حدد الوقت",
"pleaseWaitYouWillBeCalledForVitalSigns": "يرجى الانتظار! سيتم استدعاؤك لقياس العلامات الحيوية",
"pleaseVisitRoomForVitalSigns": "يرجى زيارة الغرفة {roomNumber} لقياس العلامات الحيوية",
"pleaseVisitRoomToTheDoctor": "يرجى زيارة الغرفة {roomNumber} لمقابلة الطبيب"
"pleaseVisitRoomToTheDoctor": "يرجى زيارة الغرفة {roomNumber} لمقابلة الطبيب",
"timeFor": "الوقت"
}

@ -1488,5 +1488,6 @@ abstract class LocaleKeys {
static const pleaseWaitYouWillBeCalledForVitalSigns = 'pleaseWaitYouWillBeCalledForVitalSigns';
static const pleaseVisitRoomForVitalSigns = 'pleaseVisitRoomForVitalSigns';
static const pleaseVisitRoomToTheDoctor = 'pleaseVisitRoomToTheDoctor';
static const timeFor = 'Time for';
}

@ -393,16 +393,16 @@ class _ActiveMedicationPageState extends State<ActiveMedicationPage> {
children: [
AppCustomChipWidget(
labelText:
LocaleKeys.route.tr(namedArgs: {'route': med.route ?? ''})),
LocaleKeys.route.tr(namedArgs: {LocaleKeys.route.tr(): med.route ?? ''})),
AppCustomChipWidget(
labelText:
LocaleKeys.frequency.tr(namedArgs: {'frequency': med.frequency ?? ''})),
LocaleKeys.frequency.tr(namedArgs: {LocaleKeys.frequency.tr(): med.frequency ?? ''})),
AppCustomChipWidget(
labelText:
LocaleKeys.instruction.tr(namedArgs: {'instruction': med.doseDailyQuantity?.toString() ?? ''})),
LocaleKeys.instruction.tr(namedArgs: {LocaleKeys.instruction.tr(): med.doseDailyQuantity?.toString() ?? ''})),
AppCustomChipWidget(
labelText:
LocaleKeys.duration.tr(namedArgs: {'days': med.days.toString() ?? ''})),
LocaleKeys.duration.tr(namedArgs: {LocaleKeys.days.tr(): med.days.toString() ?? ''})),
],
),
],
@ -813,7 +813,7 @@ class _ReminderTimerDialogState extends State<ReminderTimerDialog> {
text: TextSpan(
children: [
TextSpan(
text: "Time for ",
text: LocaleKeys.timeFor.tr(),
style: TextStyle(
fontSize: 18.f,
fontWeight: FontWeight.bold,
@ -842,7 +842,7 @@ class _ReminderTimerDialogState extends State<ReminderTimerDialog> {
),
),
TextSpan(
text: " reminder",
text: LocaleKeys.reminder.tr(),
style: TextStyle(
fontSize: 18.f,
fontWeight: FontWeight.bold,

@ -859,7 +859,11 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
Expanded(
child: CustomButton(
text: LocaleKeys.allMedications.tr(context: context),
onPressed: () {},
onPressed: () { Navigator.of(context).push(
CustomPageRoute(
page: ActiveMedicationPage(),
),
);},
backgroundColor: AppColors.secondaryLightRedColor,
borderColor: AppColors.secondaryLightRedColor,
textColor: AppColors.primaryRedColor,

Loading…
Cancel
Save