bug fixfor arabic

This commit is contained in:
Juki-shiba 2025-04-16 13:07:46 +05:30
parent 5282920259
commit 69cab6b60b

View File

@ -16,10 +16,19 @@ class TermsOfUse extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Theme( return Theme(
data: ThemeData( data: ThemeData(
fontFamily: 'Roboto', // Set default font family for this page fontFamily: context.translate(
'Roboto',
'NotoKufi',
), // Set default font family for this page
textTheme: TextTheme( textTheme: TextTheme(
bodyMedium: TextStyle(fontSize: 16, color:Color(0xFF898C81),), bodyMedium: TextStyle(fontSize: 16, color:Color(0xFF898C81),fontFamily: context.translate(
bodyLarge: TextStyle(fontSize: 16, color:Color(0xFF414042), fontFamily: 'Roboto',fontWeight: FontWeight.w500), 'Roboto',
'NotoKufi',
),),
bodyLarge: TextStyle(fontSize: 16, color:Color(0xFF414042), fontFamily: context.translate(
'Roboto',
'NotoKufi',
),fontWeight: FontWeight.w500),
), ),
), ),
child: Scaffold( child: Scaffold(
@ -36,6 +45,10 @@ class TermsOfUse extends StatelessWidget {
'الشروط والأحكام', 'الشروط والأحكام',
), ),
style: TextStyle( style: TextStyle(
fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
fontSize:22, fontSize:22,
color: Colors.black87, color: Colors.black87,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
@ -68,6 +81,10 @@ class TermsOfUse extends StatelessWidget {
, 'مؤسسة المشاع الإبداعي نَسْبُ الـمُصنَّف 4.0 رخصة عمومية دولية'), , 'مؤسسة المشاع الإبداعي نَسْبُ الـمُصنَّف 4.0 رخصة عمومية دولية'),
style: style:
TextStyle( TextStyle(
fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
fontSize:20, fontSize:20,
color: Color(0xFF414042), color: Color(0xFF414042),
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
@ -81,9 +98,12 @@ class TermsOfUse extends StatelessWidget {
'يخضع المحتوى والبيانات المتاحة من خلال UAE.Stat', 'يخضع المحتوى والبيانات المتاحة من خلال UAE.Stat',
), ),
style: TextStyle( style: TextStyle(
fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
fontSize: 16, fontSize: 16,
color: Color(0xFF898C81), color: Color(0xFF898C81),
fontFamily: 'Roboto',
height: 1.4, height: 1.4,
), ),
children: [ children: [
@ -95,7 +115,10 @@ class TermsOfUse extends StatelessWidget {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Color(0xFF414042), color: Color(0xFF414042),
fontFamily: 'Roboto', fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
), ),
), ),
TextSpan( TextSpan(
@ -105,7 +128,10 @@ class TermsOfUse extends StatelessWidget {
), ),
style: TextStyle( style: TextStyle(
color: Color(0xFF414042), // No bold color: Color(0xFF414042), // No bold
fontFamily: 'Roboto', fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
), ),
), ),
TextSpan( TextSpan(
@ -124,6 +150,10 @@ class TermsOfUse extends StatelessWidget {
'1.الشروط والأحكام', '1.الشروط والأحكام',
), ),
style: TextStyle( style: TextStyle(
fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
fontSize:20, fontSize:20,
color: Colors.black87, color: Colors.black87,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
@ -133,7 +163,10 @@ class TermsOfUse extends StatelessWidget {
SizedBox(height: 5), SizedBox(height: 5),
Text( Text(
context.translate('You are free to:', 'يُسمح لك بـ:'), context.translate('You are free to:', 'يُسمح لك بـ:'),
style: TextStyle(fontSize: 16, color:Color(0xFF414042), fontFamily: 'Roboto',fontWeight: FontWeight.w500), style: TextStyle(fontSize: 16, color:Color(0xFF414042), fontFamily: context.translate(
'Roboto',
'NotoKufi',
),fontWeight: FontWeight.w500),
), ),
Padding(padding: EdgeInsets.only(left: 10,top: 5, bottom: 7), Padding(padding: EdgeInsets.only(left: 10,top: 5, bottom: 7),
child: Column( child: Column(
@ -149,14 +182,20 @@ class TermsOfUse extends StatelessWidget {
Expanded( Expanded(
child: RichText( child: RichText(
text: TextSpan( text: TextSpan(
style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: 'Roboto'), style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: context.translate(
'Roboto',
'NotoKufi',
),),
children: <TextSpan>[ children: <TextSpan>[
TextSpan(text: context.translate('Share ', TextSpan(text: context.translate('Share ',
'المشاركة '), 'المشاركة '),
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Color(0xFF414042), color: Color(0xFF414042),
fontFamily: 'Roboto' fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
),), ),),
TextSpan(text:context.translate(' Copy and redistribute the material in any medium or format.', TextSpan(text:context.translate(' Copy and redistribute the material in any medium or format.',
'نسخ وإعادة توزيع المحتوى بأي وسيلة أو صيغة.', 'نسخ وإعادة توزيع المحتوى بأي وسيلة أو صيغة.',
@ -179,14 +218,20 @@ class TermsOfUse extends StatelessWidget {
Expanded( Expanded(
child: RichText( child: RichText(
text: TextSpan( text: TextSpan(
style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: 'Roboto'), style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: context.translate(
'Roboto',
'NotoKufi',
),),
children: <TextSpan>[ children: <TextSpan>[
TextSpan(text:context.translate( 'Adapt ', TextSpan(text:context.translate( 'Adapt ',
'التعديل '), 'التعديل '),
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Color(0xFF414042), color: Color(0xFF414042),
fontFamily: 'Roboto' fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
),), ),),
TextSpan(text:context.translate( 'Remix, transform, and build upon the material for any purpose, even commercially.', TextSpan(text:context.translate( 'Remix, transform, and build upon the material for any purpose, even commercially.',
'إعادة مزج، تعديل، أو البناء على المحتوى لأي غرض، بما في ذلك الأغراض التجارية.'), 'إعادة مزج، تعديل، أو البناء على المحتوى لأي غرض، بما في ذلك الأغراض التجارية.'),
@ -210,6 +255,10 @@ class TermsOfUse extends StatelessWidget {
, '2.شروط الترخيص',), , '2.شروط الترخيص',),
style: style:
TextStyle( TextStyle(
fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
fontSize:20, fontSize:20,
color: Color(0xFF414042), color: Color(0xFF414042),
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
@ -217,7 +266,10 @@ class TermsOfUse extends StatelessWidget {
SizedBox(height: 5), SizedBox(height: 5),
Text( Text(
context.translate('Under the following terms:', 'وفقًا للشروط التالية:'), context.translate('Under the following terms:', 'وفقًا للشروط التالية:'),
style: TextStyle(fontSize: 16, color:Color(0xFF414042), fontFamily: 'Roboto',fontWeight: FontWeight.w500), style: TextStyle(fontSize: 16, color:Color(0xFF414042), fontFamily: context.translate(
'Roboto',
'NotoKufi',
),fontWeight: FontWeight.w500),
), ),
SizedBox(height: 5), SizedBox(height: 5),
Padding(padding: EdgeInsets.only(left: 10,top: 5, bottom: 7), Padding(padding: EdgeInsets.only(left: 10,top: 5, bottom: 7),
@ -234,13 +286,19 @@ class TermsOfUse extends StatelessWidget {
Expanded( Expanded(
child: RichText( child: RichText(
text: TextSpan( text: TextSpan(
style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: 'Roboto'), style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: context.translate(
'Roboto',
'NotoKufi',
),),
children: <TextSpan>[ children: <TextSpan>[
TextSpan(text: context.translate('Attribution ',' نَسْب المُصنَّف'), TextSpan(text: context.translate('Attribution ',' نَسْب المُصنَّف'),
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Color(0xFF414042), color: Color(0xFF414042),
fontFamily: 'Roboto' fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
),), ),),
TextSpan( TextSpan(
text: context.translate( text: context.translate(
@ -266,13 +324,19 @@ class TermsOfUse extends StatelessWidget {
Expanded( Expanded(
child: RichText( child: RichText(
text: TextSpan( text: TextSpan(
style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: 'Roboto'), style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: context.translate(
'Roboto',
'NotoKufi',
),),
children: <TextSpan>[ children: <TextSpan>[
TextSpan(text: context.translate('No additional restrictions ','عدم فرض قيود إضافية '), TextSpan(text: context.translate('No additional restrictions ','عدم فرض قيود إضافية '),
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Color(0xFF414042), color: Color(0xFF414042),
fontFamily: 'Roboto' fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
),), ),),
TextSpan( TextSpan(
text: context.translate( text: context.translate(
@ -296,6 +360,10 @@ class TermsOfUse extends StatelessWidget {
, '3.نطاق الترخيص',), , '3.نطاق الترخيص',),
style: style:
TextStyle( TextStyle(
fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
fontSize:20, fontSize:20,
color: Color(0xFF414042), color: Color(0xFF414042),
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
@ -303,7 +371,10 @@ class TermsOfUse extends StatelessWidget {
SizedBox(height: 5), SizedBox(height: 5),
Text( Text(
context.translate('The Licensor grants you:', 'يمنحك المرخِّص:'), context.translate('The Licensor grants you:', 'يمنحك المرخِّص:'),
style: TextStyle(fontSize: 16, color:Color(0xFF414042), fontFamily: 'Roboto',fontWeight: FontWeight.w400), style: TextStyle(fontSize: 16, color:Color(0xFF414042), fontFamily: context.translate(
'Roboto',
'NotoKufi',
),fontWeight: FontWeight.w400),
), ),
SizedBox(height: 5), SizedBox(height: 5),
Padding(padding: EdgeInsets.only(left: 10,top: 5, bottom: 7), Padding(padding: EdgeInsets.only(left: 10,top: 5, bottom: 7),
@ -312,7 +383,10 @@ class TermsOfUse extends StatelessWidget {
Text( Text(
context.translate('A worldwide, royalty-free, non-exclusive, irrevocable license to:', context.translate('A worldwide, royalty-free, non-exclusive, irrevocable license to:',
'ترخيصًا عالميًا، خاليًا من الإتاوات، غير حصري، وغير قابل للإلغاء لـ:'), 'ترخيصًا عالميًا، خاليًا من الإتاوات، غير حصري، وغير قابل للإلغاء لـ:'),
style: TextStyle(fontSize: 16, color:Color(0xFF414042), fontFamily: 'Roboto',fontWeight: FontWeight.w400), style: TextStyle(fontSize: 16, color:Color(0xFF414042), fontFamily: context.translate(
'Roboto',
'NotoKufi',
),fontWeight: FontWeight.w400),
), ),
Row( Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -325,13 +399,19 @@ class TermsOfUse extends StatelessWidget {
Expanded( Expanded(
child: RichText( child: RichText(
text: TextSpan( text: TextSpan(
style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: 'Roboto'), style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: context.translate(
'Roboto',
'NotoKufi',
),),
children: <TextSpan>[ children: <TextSpan>[
TextSpan(text: context.translate('Reproduce and share ','نسخ ومشاركة '), TextSpan(text: context.translate('Reproduce and share ','نسخ ومشاركة '),
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
color: Color(0xFF414042), color: Color(0xFF414042),
fontFamily: 'Roboto' fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
),), ),),
TextSpan( TextSpan(
text: context.translate( text: context.translate(
@ -357,13 +437,19 @@ class TermsOfUse extends StatelessWidget {
Expanded( Expanded(
child: RichText( child: RichText(
text: TextSpan( text: TextSpan(
style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: 'Roboto'), style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: context.translate(
'Roboto',
'NotoKufi',
),),
children: <TextSpan>[ children: <TextSpan>[
TextSpan(text: context.translate('Modify and create ','تعديل وإنشاء '), TextSpan(text: context.translate('Modify and create ','تعديل وإنشاء '),
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
color: Color(0xFF414042), color: Color(0xFF414042),
fontFamily: 'Roboto' fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
),), ),),
TextSpan( TextSpan(
text: context.translate( text: context.translate(
@ -382,7 +468,10 @@ class TermsOfUse extends StatelessWidget {
), ),
Text(context.translate('This license applies to all media formats, including future technologies.', Text(context.translate('This license applies to all media formats, including future technologies.',
'ينطبق هذا الترخيص على جميع الوسائط والصيغ، بما في ذلك التقنيات المستقبلية.',), 'ينطبق هذا الترخيص على جميع الوسائط والصيغ، بما في ذلك التقنيات المستقبلية.',),
style: TextStyle(fontSize: 16, color:Color(0xFF414042), fontFamily: 'Roboto',fontWeight: FontWeight.w400), style: TextStyle(fontSize: 16, color:Color(0xFF414042), fontFamily: context.translate(
'Roboto',
'NotoKufi',
),fontWeight: FontWeight.w400),
), ),
SizedBox(height: 8), SizedBox(height: 8),
Text( Text(
@ -391,6 +480,10 @@ class TermsOfUse extends StatelessWidget {
, '4.القيود والمصادقة',), , '4.القيود والمصادقة',),
style: style:
TextStyle( TextStyle(
fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
fontSize:20, fontSize:20,
color: Color(0xFF414042), color: Color(0xFF414042),
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
@ -410,13 +503,19 @@ class TermsOfUse extends StatelessWidget {
Expanded( Expanded(
child: RichText( child: RichText(
text: TextSpan( text: TextSpan(
style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: 'Roboto'), style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: context.translate(
'Roboto',
'NotoKufi',
),),
children: <TextSpan>[ children: <TextSpan>[
TextSpan(text: context.translate('No Endorsement ','عدم المصادقة '), TextSpan(text: context.translate('No Endorsement ','عدم المصادقة '),
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Color(0xFF414042), color: Color(0xFF414042),
fontFamily: 'Roboto' fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
),), ),),
TextSpan( TextSpan(
text: context.translate( text: context.translate(
@ -442,13 +541,19 @@ class TermsOfUse extends StatelessWidget {
Expanded( Expanded(
child: RichText( child: RichText(
text: TextSpan( text: TextSpan(
style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: 'Roboto'), style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: context.translate(
'Roboto',
'NotoKufi',
),),
children: <TextSpan>[ children: <TextSpan>[
TextSpan(text: context.translate('No Patent or Trademark Rights ','التجارية '), TextSpan(text: context.translate('No Patent or Trademark Rights ','التجارية '),
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Color(0xFF414042), color: Color(0xFF414042),
fontFamily: 'Roboto' fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
),), ),),
TextSpan( TextSpan(
text: context.translate( text: context.translate(
@ -473,6 +578,10 @@ class TermsOfUse extends StatelessWidget {
, '5.إخلاء المسؤولية',), , '5.إخلاء المسؤولية',),
style: style:
TextStyle( TextStyle(
fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
fontSize:20, fontSize:20,
color: Color(0xFF414042), color: Color(0xFF414042),
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
@ -493,13 +602,19 @@ class TermsOfUse extends StatelessWidget {
child: RichText( child: RichText(
text: TextSpan( text: TextSpan(
text: context.translate('The content is provided ','دون أي ضمانات '), text: context.translate('The content is provided ','دون أي ضمانات '),
style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: 'Roboto'), style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: context.translate(
'Roboto',
'NotoKufi',
),),
children: <TextSpan>[ children: <TextSpan>[
TextSpan(text: context.translate('"as is" ', '"كما هو" '), TextSpan(text: context.translate('"as is" ', '"كما هو" '),
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
color: Color(0xFF414042), color: Color(0xFF414042),
fontFamily: 'Roboto' fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
),), ),),
TextSpan( TextSpan(
text: context.translate( text: context.translate(
@ -526,13 +641,19 @@ class TermsOfUse extends StatelessWidget {
child: RichText( child: RichText(
text: TextSpan( text: TextSpan(
text: context.translate('The Licensor is ','دون أي ضمانات '), text: context.translate('The Licensor is ','دون أي ضمانات '),
style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: 'Roboto'), style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: context.translate(
'Roboto',
'NotoKufi',
),),
children: <TextSpan>[ children: <TextSpan>[
TextSpan(text: context.translate('not responsible ', 'أي مسؤولية '), TextSpan(text: context.translate('not responsible ', 'أي مسؤولية '),
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
color: Color(0xFF414042), color: Color(0xFF414042),
fontFamily: 'Roboto' fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
),), ),),
TextSpan( TextSpan(
text: context.translate( text: context.translate(
@ -557,6 +678,10 @@ class TermsOfUse extends StatelessWidget {
, '7.إنهاء الترخيص',), , '7.إنهاء الترخيص',),
style: style:
TextStyle( TextStyle(
fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
fontSize:20, fontSize:20,
color: Color(0xFF414042), color: Color(0xFF414042),
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
@ -577,13 +702,19 @@ class TermsOfUse extends StatelessWidget {
child: RichText( child: RichText(
text: TextSpan( text: TextSpan(
text: context.translate('If you ','إذا '), text: context.translate('If you ','إذا '),
style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: 'Roboto'), style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: context.translate(
'Roboto',
'NotoKufi',
),),
children: <TextSpan>[ children: <TextSpan>[
TextSpan(text: context.translate('violate the license terms ', 'انتهكت شروط الترخيص، '), TextSpan(text: context.translate('violate the license terms ', 'انتهكت شروط الترخيص، '),
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
color: Color(0xFF414042), color: Color(0xFF414042),
fontFamily: 'Roboto' fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
),), ),),
TextSpan( TextSpan(
text: context.translate( text: context.translate(
@ -610,13 +741,19 @@ class TermsOfUse extends StatelessWidget {
child: RichText( child: RichText(
text: TextSpan( text: TextSpan(
text: context.translate('Rights may be reinstated ','يمكن استعادة الحقوق '), text: context.translate('Rights may be reinstated ','يمكن استعادة الحقوق '),
style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: 'Roboto'), style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: context.translate(
'Roboto',
'NotoKufi',
),),
children: <TextSpan>[ children: <TextSpan>[
TextSpan(text: context.translate('if the violation is corrected within 30 days.', 'إذا تم تصحيح الانتهاك خلال 30 يومًا. '), TextSpan(text: context.translate('if the violation is corrected within 30 days.', 'إذا تم تصحيح الانتهاك خلال 30 يومًا. '),
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
color: Color(0xFF414042), color: Color(0xFF414042),
fontFamily: 'Roboto' fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
),), ),),
], ],
@ -635,6 +772,10 @@ class TermsOfUse extends StatelessWidget {
, '7.شروط إضافية',), , '7.شروط إضافية',),
style: style:
TextStyle( TextStyle(
fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
fontSize:20, fontSize:20,
color: Color(0xFF414042), color: Color(0xFF414042),
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
@ -655,13 +796,19 @@ class TermsOfUse extends StatelessWidget {
child: RichText( child: RichText(
text: TextSpan( text: TextSpan(
text: context.translate('The Licensor is not bound by ','لا يكون المرخِّص ملزمًا '), text: context.translate('The Licensor is not bound by ','لا يكون المرخِّص ملزمًا '),
style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: 'Roboto'), style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: context.translate(
'Roboto',
'NotoKufi',
),),
children: <TextSpan>[ children: <TextSpan>[
TextSpan(text: context.translate('any additional terms ', 'بأي شروط إضافية '), TextSpan(text: context.translate('any additional terms ', 'بأي شروط إضافية '),
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
color: Color(0xFF414042), color: Color(0xFF414042),
fontFamily: 'Roboto' fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
),), ),),
TextSpan( TextSpan(
text: context.translate( text: context.translate(
@ -688,13 +835,19 @@ class TermsOfUse extends StatelessWidget {
child: RichText( child: RichText(
text: TextSpan( text: TextSpan(
text: context.translate('If any provision is ','لا يكون المرخِّص ملزمًا '), text: context.translate('If any provision is ','لا يكون المرخِّص ملزمًا '),
style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: 'Roboto'), style: TextStyle(fontSize: 16, color: Color(0xFF898C81), fontFamily: context.translate(
'Roboto',
'NotoKufi',
),),
children: <TextSpan>[ children: <TextSpan>[
TextSpan(text: context.translate('unenforceable,', 'أي شرط غير قابل للتنفيذ، '), TextSpan(text: context.translate('unenforceable,', 'أي شرط غير قابل للتنفيذ، '),
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
color: Color(0xFF414042), color: Color(0xFF414042),
fontFamily: 'Roboto' fontFamily: context.translate(
'Roboto',
'NotoKufi',
),
),), ),),
TextSpan( TextSpan(
text: context.translate( text: context.translate(