language flags removing

This commit is contained in:
MhdZiadHirati 2023-10-26 11:22:14 +03:00
parent f4d77448c0
commit 23fb9b62d2
2 changed files with 10 additions and 6 deletions

View File

@ -4,6 +4,8 @@ class PagesTranslations implements Translations {
@override @override
Map<String, Map<String, String>> get keys => { Map<String, Map<String, String>> get keys => {
'en': { 'en': {
'english': 'EN',
'arabic': 'AR',
'cancel_appointment': 'Cancel Appointment', 'cancel_appointment': 'Cancel Appointment',
'appointment_canceling': 'Appontiment Canceling', 'appointment_canceling': 'Appontiment Canceling',
'are_you_sure_?': 'Are You Sure?', 'are_you_sure_?': 'Are You Sure?',
@ -196,6 +198,8 @@ class PagesTranslations implements Translations {
'Enter your email to reset your password please \n We will send verification code to your Email.', 'Enter your email to reset your password please \n We will send verification code to your Email.',
}, },
'ar': { 'ar': {
'english': 'الإنجليزية',
'arabic': 'العربية',
'cancel_appointment': 'إلغاء الموعد', 'cancel_appointment': 'إلغاء الموعد',
'appointment_canceling': 'إلغاء الموعد', 'appointment_canceling': 'إلغاء الموعد',
'are_you_sure_?': 'هل أنت متأكد؟', 'are_you_sure_?': 'هل أنت متأكد؟',

View File

@ -242,17 +242,17 @@ class AccountScreen extends StatelessWidget {
DropdownMenuItem( DropdownMenuItem(
value: 'english', value: 'english',
child: SizedBox( child: SizedBox(
width: 40, width: 50,
height: 40, height: 23,
child: SvgPicture.asset('assets/icons/english.svg'), child: BoldTextWidget('english'.tr),
), ),
), ),
DropdownMenuItem( DropdownMenuItem(
value: 'arabic', value: 'arabic',
child: SizedBox( child: SizedBox(
width: 40, width: 50,
height: 40, height: 23,
child: SvgPicture.asset('assets/icons/arabic.svg'), child: BoldTextWidget('arabic'.tr),
), ),
), ),
], ],