Compare commits

...

1 Commits

Author SHA1 Message Date
Elham Rababh e26a602cf3 fix prgress note 4 years ago

@ -1129,4 +1129,7 @@ const Map<String, Map<String, String>> localizedValues = {
"VTE_Type": {"en": "VTE Type", "ar": "VTE Type"},
"pharmacology": {"en": "Pharmacology", "ar": "علم العقاقير"},
"reasonsThrombo": {"en": "Reasons Thrombo", "ar": "أسباب ثرومبو"},
"addedSuccessfully": {"en": " Added Successfully", "ar": "اضيف بنجاح"},
"updatedSuccessfully": {"en": " Updated Successfully", "ar": "تم التحديث بنجاح"},
"youCantAddSpaceOnly": {"en": "You cant add only spaces", "ar": "لا يمكنك إضافة مسافات فقط"},
};

@ -261,10 +261,16 @@ class _UpdateNoteOrderState extends State<UpdateNoteOrder> {
}
GifLoaderDialogUtils.hideDialog(context);
DrAppToastMsg.showSuccesToast(
"Your Order added Successfully");
"${widget.visitType == 3?
TranslationBase.of(context).orderSheet+ (widget.isUpdate
? TranslationBase.of(context).updatedSuccessfully
: TranslationBase.of(context).addedSuccessfully)
: TranslationBase.of(context).progressNote + (widget.isUpdate
? TranslationBase.of(context).updatedSuccessfully
: TranslationBase.of(context).addedSuccessfully) }");
Navigator.of(context).pop();
} else {
Helpers.showErrorToast("You cant add only spaces");
Helpers.showErrorToast(TranslationBase.of(context).youCantAddSpaceOnly);
}
})),
],

@ -1755,6 +1755,9 @@ class TranslationBase {
String get VTE_Type => localizedValues['VTE_Type'][locale.languageCode];
String get pharmacology => localizedValues['pharmacology'][locale.languageCode];
String get reasonsThrombo => localizedValues['reasonsThrombo'][locale.languageCode];
String get addedSuccessfully => localizedValues['addedSuccessfully'][locale.languageCode];
String get updatedSuccessfully => localizedValues['updatedSuccessfully'][locale.languageCode];
String get youCantAddSpaceOnly => localizedValues['youCantAddSpaceOnly'][locale.languageCode];
}
class TranslationBaseDelegate extends LocalizationsDelegate<TranslationBase> {

Loading…
Cancel
Save