From 1a0ae636f797acd0839b89e8cefdd021615dd385 Mon Sep 17 00:00:00 2001 From: Juki-shiba Date: Wed, 16 Apr 2025 16:44:18 +0530 Subject: [PATCH] bug fix internet check --- .../Screens/charts/screens/chart_screen.dart | 24 +++++++++++++++---- .../internet_check.dart | 20 ++++++++++++---- 2 files changed, 36 insertions(+), 8 deletions(-) diff --git a/lib/presentation/Screens/charts/screens/chart_screen.dart b/lib/presentation/Screens/charts/screens/chart_screen.dart index b73759ff..48d1b29e 100644 --- a/lib/presentation/Screens/charts/screens/chart_screen.dart +++ b/lib/presentation/Screens/charts/screens/chart_screen.dart @@ -601,7 +601,11 @@ class _ChartScreen1State extends ConsumerState { padding: EdgeInsets.only(right: 10), child: Text( '3/7', - style: const TextStyle( + style: TextStyle( + fontFamily: context.translate( + 'Roboto', + 'NotoKufi', + ), color: Colors.white, fontSize: 14, ), @@ -769,7 +773,11 @@ class _ChartScreen1State extends ConsumerState { padding: EdgeInsets.only(right: 10), child: Text( '4/7', - style: const TextStyle( + style: TextStyle( + fontFamily: context.translate( + 'Roboto', + 'NotoKufi', + ), color: Colors.white, fontSize: 14, ), @@ -943,7 +951,11 @@ class _ChartScreen1State extends ConsumerState { padding: const EdgeInsets.only(right: 10.0), child: Text( '4/7', - style: const TextStyle( + style: TextStyle( + fontFamily: context.translate( + 'Roboto', + 'NotoKufi', + ), color: Colors.white, fontSize: 14, ), @@ -1107,7 +1119,11 @@ class _ChartScreen1State extends ConsumerState { padding: const EdgeInsets.only(right: 10.0), child: Text( '3/7', - style: const TextStyle( + style: TextStyle( + fontFamily: context.translate( + 'Roboto', + 'NotoKufi', + ), color: Colors.white, fontSize: 14, ), diff --git a/lib/presentation/Screens/online_offline_verification/internet_check.dart b/lib/presentation/Screens/online_offline_verification/internet_check.dart index 8b39d23f..fd6bcbe1 100644 --- a/lib/presentation/Screens/online_offline_verification/internet_check.dart +++ b/lib/presentation/Screens/online_offline_verification/internet_check.dart @@ -44,11 +44,20 @@ class InternetCheckScreen extends ConsumerWidget { Image.asset('assets/logos/no-internet.png', width: 150), SizedBox(height: myHeight / 40), Text(context.translate('No Internet Connection','لا يوجد اتصال بالإنترنت'), - style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),), + style: TextStyle(fontFamily: context.translate( + 'Roboto', + 'NotoKufi', + ), fontSize: 25, fontWeight: FontWeight.bold),), Text(context.translate('Please check your Wi-Fi or Mobile Data','يرجى التحقق من شبكة Wi-Fi أو بيانات الهاتف المحمول'), - style: TextStyle(fontSize: 15, fontWeight: FontWeight.w500),), + style: TextStyle(fontFamily: context.translate( + 'Roboto', + 'NotoKufi', + ), fontSize: 15, fontWeight: FontWeight.w500),), Text(context.translate('connection and try again','واتصالك ثم حاول مرة أخرى'), - style: TextStyle(fontSize: 15, fontWeight: FontWeight.w500),), + style: TextStyle(fontFamily: context.translate( + 'Roboto', + 'NotoKufi', + ), fontSize: 15, fontWeight: FontWeight.w500),), SizedBox(height: myHeight / 40), ElevatedButton( onPressed: () async { @@ -90,7 +99,10 @@ class InternetCheckScreen extends ConsumerWidget { mainAxisSize: MainAxisSize.min, children: [ Text( context.translate('Retry','إعادة المحاولة'), - style: TextStyle(fontSize: 16, color: Colors.white),), + style: TextStyle(fontFamily: context.translate( + 'Roboto', + 'NotoKufi', + ), fontSize: 16, color: Colors.white),), SizedBox(width: 8), Icon(Icons.refresh, size: 16, color: Colors.white), ],