fixed errors

fatima
Fatimah.Alshammari 3 months ago
parent 838929591a
commit d027415302

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

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

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

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

Loading…
Cancel
Save