diff --git a/assets/langs/ar-SA.json b/assets/langs/ar-SA.json index 22b1015..b4f7eb6 100644 --- a/assets/langs/ar-SA.json +++ b/assets/langs/ar-SA.json @@ -401,6 +401,7 @@ "ITGForms": "ITG نماذج", "itemCreation": "أنشاء عنصر", "stamp": "ختم", + "addFavoriteList": "هل تريد اضافة {name} لقائمة المفضله", "profile": { "reset_password": { "label": "Reset Password", @@ -411,7 +412,7 @@ "completeProfile": "الملف الشخصي الكامل", "personalInformation": "معلومات شخصية", "basicDetails": "تفاصيل أساسية", - "address": "تبوك", + "address": "العنوان", "contactDetails": "بيانات التواصل", "familyDetails": "تفاصيل عائلية", "effectiveDate": "تاريخ النفاذ", diff --git a/assets/langs/en-US.json b/assets/langs/en-US.json index 5ab3072..7e0d3f7 100644 --- a/assets/langs/en-US.json +++ b/assets/langs/en-US.json @@ -401,6 +401,7 @@ "ITGForms": "ITG Forms", "itemCreation": "Item Creation", "stamp": "Stamp", + "addFavoriteList": "Do you want to add {name} in your favorite list", "profile": { "reset_password": { "label": "Reset Password", diff --git a/lib/generated/codegen_loader.g.dart b/lib/generated/codegen_loader.g.dart index 9ca5f00..c4e2891 100644 --- a/lib/generated/codegen_loader.g.dart +++ b/lib/generated/codegen_loader.g.dart @@ -46,7 +46,7 @@ class CodegenLoader extends AssetLoader{ "services": "خدمات", "viewAllServices": "عرض جميع الخدمات", "monthlyAttendance": "الحضور الشهري", - "vacationRule": "حكم اجازة", + "vacationRule": "قاعدة الاجازات", "vacationType": "نوع الاجازة", "startDateT": "تاريخ البدء", "endDateT": "تاريخ الانتهاء", @@ -417,6 +417,7 @@ class CodegenLoader extends AssetLoader{ "ITGForms": "ITG نماذج", "itemCreation": "أنشاء عنصر", "stamp": "ختم", + "addFavoriteList": "هل تريد اضافة {name} لقائمة المفضله", "profile": { "reset_password": { "label": "Reset Password", @@ -427,7 +428,7 @@ class CodegenLoader extends AssetLoader{ "completeProfile": "الملف الشخصي الكامل", "personalInformation": "معلومات شخصية", "basicDetails": "تفاصيل أساسية", - "address": "تبوك", + "address": "العنوان", "contactDetails": "بيانات التواصل", "familyDetails": "تفاصيل عائلية", "effectiveDate": "تاريخ النفاذ", @@ -854,6 +855,7 @@ static const Map en_US = { "ITGForms": "ITG Forms", "itemCreation": "Item Creation", "stamp": "Stamp", + "addFavoriteList": "Do you want to add {name} in your favorite list", "profile": { "reset_password": { "label": "Reset Password", diff --git a/lib/generated/locale_keys.g.dart b/lib/generated/locale_keys.g.dart index 3087564..16ceab4 100644 --- a/lib/generated/locale_keys.g.dart +++ b/lib/generated/locale_keys.g.dart @@ -402,6 +402,7 @@ abstract class LocaleKeys { static const ITGForms = 'ITGForms'; static const itemCreation = 'itemCreation'; static const stamp = 'stamp'; + static const addFavoriteList = 'addFavoriteList'; static const profile_reset_password_label = 'profile.reset_password.label'; static const profile_reset_password_username = 'profile.reset_password.username'; static const profile_reset_password_password = 'profile.reset_password.password'; diff --git a/lib/ui/my_team/employee_details.dart b/lib/ui/my_team/employee_details.dart index 781c2a5..3b65954 100644 --- a/lib/ui/my_team/employee_details.dart +++ b/lib/ui/my_team/employee_details.dart @@ -252,16 +252,20 @@ class _EmployeeDetailsState extends State { height: 150, child: Column( children: [ - AppState().isArabic(context) - ? Text("هل تريد اضافة" + " ${getEmployeeSubordinates!.eMPLOYEENAME} " + "لقائمة المفضله") - : Text("Do you want to add" + " ${getEmployeeSubordinates!.eMPLOYEENAME} " + "in your favorite list "), - CircularAvatar( - url: getEmployeeSubordinates!.eMPLOYEEIMAGE ?? "", - height: 50, + Text(LocaleKeys.addFavoriteList).tr(namedArgs: {'name': '${getEmployeeSubordinates!.eMPLOYEENAME}'}), + Image.memory( + Utils.getPostBytes( + getEmployeeSubordinates!.eMPLOYEEIMAGE ?? "", + ), + errorBuilder: (BuildContext context, error, stackTrace) { + return SvgPicture.asset( + "assets/images/user.svg", height: 50, width: 50, + ); + }, width: 50, - isImageBase64: true, - ).paddingOnly(top: 21), - // 16.width, + height: 50, + fit: BoxFit.cover, + ).circle(50).paddingOnly(top: 21), ], ), ),