bug fix internet check
This commit is contained in:
parent
69cab6b60b
commit
1a0ae636f7
@ -601,7 +601,11 @@ class _ChartScreen1State extends ConsumerState<ChartScreen1> {
|
|||||||
padding: EdgeInsets.only(right: 10),
|
padding: EdgeInsets.only(right: 10),
|
||||||
child: Text(
|
child: Text(
|
||||||
'3/7',
|
'3/7',
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
|
fontFamily: context.translate(
|
||||||
|
'Roboto',
|
||||||
|
'NotoKufi',
|
||||||
|
),
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
),
|
),
|
||||||
@ -769,7 +773,11 @@ class _ChartScreen1State extends ConsumerState<ChartScreen1> {
|
|||||||
padding: EdgeInsets.only(right: 10),
|
padding: EdgeInsets.only(right: 10),
|
||||||
child: Text(
|
child: Text(
|
||||||
'4/7',
|
'4/7',
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
|
fontFamily: context.translate(
|
||||||
|
'Roboto',
|
||||||
|
'NotoKufi',
|
||||||
|
),
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
),
|
),
|
||||||
@ -943,7 +951,11 @@ class _ChartScreen1State extends ConsumerState<ChartScreen1> {
|
|||||||
padding: const EdgeInsets.only(right: 10.0),
|
padding: const EdgeInsets.only(right: 10.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'4/7',
|
'4/7',
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
|
fontFamily: context.translate(
|
||||||
|
'Roboto',
|
||||||
|
'NotoKufi',
|
||||||
|
),
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
),
|
),
|
||||||
@ -1107,7 +1119,11 @@ class _ChartScreen1State extends ConsumerState<ChartScreen1> {
|
|||||||
padding: const EdgeInsets.only(right: 10.0),
|
padding: const EdgeInsets.only(right: 10.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'3/7',
|
'3/7',
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
|
fontFamily: context.translate(
|
||||||
|
'Roboto',
|
||||||
|
'NotoKufi',
|
||||||
|
),
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
),
|
),
|
||||||
|
|||||||
@ -44,11 +44,20 @@ class InternetCheckScreen extends ConsumerWidget {
|
|||||||
Image.asset('assets/logos/no-internet.png', width: 150),
|
Image.asset('assets/logos/no-internet.png', width: 150),
|
||||||
SizedBox(height: myHeight / 40),
|
SizedBox(height: myHeight / 40),
|
||||||
Text(context.translate('No Internet Connection','لا يوجد اتصال بالإنترنت'),
|
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 أو بيانات الهاتف المحمول'),
|
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','واتصالك ثم حاول مرة أخرى'),
|
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),
|
SizedBox(height: myHeight / 40),
|
||||||
ElevatedButton(
|
ElevatedButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
@ -90,7 +99,10 @@ class InternetCheckScreen extends ConsumerWidget {
|
|||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
Text( context.translate('Retry','إعادة المحاولة'),
|
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),
|
SizedBox(width: 8),
|
||||||
Icon(Icons.refresh, size: 16, color: Colors.white),
|
Icon(Icons.refresh, size: 16, color: Colors.white),
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user