Skip to content

Commit

Permalink
Merge branch 'release-1.19' into fix/time-indication-after-midnight
Browse files Browse the repository at this point in the history
  • Loading branch information
ghassenbenzahra123 authored Jan 17, 2025
2 parents c16e96b + 24857a4 commit 04283b6
Show file tree
Hide file tree
Showing 12 changed files with 540 additions and 162 deletions.
8 changes: 4 additions & 4 deletions lib/l10n/intl_ar.arb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"rabiAlawwal": "ربيع الأول",
"rabiAlthani": "ربيع الثاني",
"jumadaAlula": "جمادى الأولى",
"jumadaAlakhirah": "جمادة الآخرة",
"jumadaAlakhirah": "جمادى الآخرة",
"rajab": "رجب",
"shaban": "شعبان",
"ramadan": "رمضان",
Expand Down Expand Up @@ -397,6 +397,6 @@
},
"ishaAndFajrOnly": "فقط صلاتي الفجر و العشاء",
"minutesBeforeFajrPrayer": "دقائق قبل وقت صلاة الفجر",
"minutesAfterIshaPrayer": "دقائق بعد وقت صلاة العشاء"

}
"minutesAfterIshaPrayer": "دقائق بعد وقت صلاة العشاء",
"initializingAutoReading": "جاري التهيئة..."
}
3 changes: 2 additions & 1 deletion lib/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -424,5 +424,6 @@
"selectReciter": "Select a Reciter",
"selectMoshaf": "Select a Mushaf",
"randomSurahSelection": "Random Surah Selection",
"selectSurah": "Select a Surah"
"selectSurah": "Select a Surah",
"initializingAutoReading": "Initializing in progress..."
}
8 changes: 4 additions & 4 deletions lib/src/helpers/AppDate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ class AppDateTime {
static final DateTime _initialRealTime = DateTime.now();
static final DateTime _initialDebugTime = DateTime(
_initialRealTime.year,
_initialRealTime.month,
_initialRealTime.day,
13,
48,
11,
1,
00,
-20,
00,
);

Expand Down
130 changes: 95 additions & 35 deletions lib/src/pages/home/widgets/salah_items/SalahItem.dart
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,7 @@ class SalahItemWidget extends StatelessOrientationWidget {

final mosqueProvider = context.watch<MosqueManager>();
final mosqueConfig = mosqueProvider.mosqueConfig;
// print(isIqamaEnabled);
final isArabic = context.read<AppLanguage>().isArabic();

final is12period = mosqueConfig?.timeDisplayFormat == "12";

return Container(
Expand Down Expand Up @@ -217,39 +215,101 @@ class SalahItemWidget extends StatelessOrientationWidget {
),
),
SizedBox(height: 0.5.vh),
if (time.trim().isEmpty)
Icon(Icons.dnd_forwardslash, size: 6.vwr)
else
TimeWidget.fromString(
show24hFormat: !is12period,
time: time,
style: TextStyle(
fontSize: isIqamaMoreImportant ? smallFont : bigFont,
fontWeight: FontWeight.w700,
shadows: kHomeTextShadow,
color: Colors.white,
// fontFamily: StringManager.getFontFamily(context),
),
),
if (iqama != null && showIqama)
SizedBox(
height: isArabic ? 1.5.vr : 1.3.vwr,
child: Divider(
thickness: 1,
color: withDivider ? Colors.white : Colors.transparent,
),
),
if (iqama != null && showIqama)
TimeWidget.fromString(
show24hFormat: !is12period,
time: iqama!,
style: TextStyle(
fontSize: isIqamaMoreImportant ? bigFont : smallFont,
fontWeight: FontWeight.bold,
shadows: kHomeTextShadow,
letterSpacing: 1,
color: Colors.white,
),
if (iqama2 != null) // Three times layout
Column(
children: [
if (time.trim().isEmpty)
Icon(Icons.dnd_forwardslash, size: 6.vwr)
else
TimeWidget.fromString(
show24hFormat: !is12period,
time: time,
style: TextStyle(
fontSize: bigFont,
fontWeight: FontWeight.w700,
shadows: kHomeTextShadow,
color: Colors.white,
height: 1,
),
),
Container(
margin: EdgeInsets.symmetric(vertical: 1.vr),
width: 20.vwr,
height: 1,
color: Colors.white,
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
TimeWidget.fromString(
show24hFormat: !is12period,
time: iqama!,
style: TextStyle(
fontSize: smallFont,
fontWeight: FontWeight.w700,
shadows: kHomeTextShadow,
color: Colors.white,
height: 1,
),
),
Container(
height: bigFont,
width: 1,
margin: EdgeInsets.symmetric(horizontal: 1.vwr),
color: Colors.white,
),
TimeWidget.fromString(
show24hFormat: !is12period,
time: iqama2!,
style: TextStyle(
fontSize: smallFont,
fontWeight: FontWeight.w700,
shadows: kHomeTextShadow,
color: Colors.white,
height: 1,
),
),
],
),
],
)
else // Original two times layout
Column(
children: [
if (time.trim().isEmpty)
Icon(Icons.dnd_forwardslash, size: 6.vwr)
else
TimeWidget.fromString(
show24hFormat: !is12period,
time: time,
style: TextStyle(
fontSize: isIqamaMoreImportant ? smallFont : bigFont,
fontWeight: FontWeight.w700,
shadows: kHomeTextShadow,
color: Colors.white,
),
),
if (iqama != null && showIqama)
SizedBox(
height: isArabic ? 1.5.vr : 1.3.vwr,
child: Divider(
thickness: 1,
color: withDivider ? Colors.white : Colors.transparent,
),
),
if (iqama != null && showIqama)
TimeWidget.fromString(
show24hFormat: !is12period,
time: iqama!,
style: TextStyle(
fontSize: isIqamaMoreImportant ? bigFont : smallFont,
fontWeight: FontWeight.bold,
shadows: kHomeTextShadow,
letterSpacing: 1,
color: Colors.white,
),
),
],
),
],
),
Expand Down
1 change: 0 additions & 1 deletion lib/src/pages/quran/page/quran_reading_screen.dart

This file was deleted.

1 change: 0 additions & 1 deletion lib/src/pages/quran/page/reciter_selection_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:mawaqit/const/resource.dart';
import 'package:mawaqit/src/helpers/RelativeSizes.dart';
import 'package:mawaqit/src/pages/quran/page/quran_reading_screen.dart';
import 'package:mawaqit/src/pages/quran/page/schedule_screen.dart';
import 'package:mawaqit/src/pages/quran/widget/recite_type_grid_view.dart';
import 'package:mawaqit/src/services/theme_manager.dart';
Expand Down
Loading

0 comments on commit 04283b6

Please sign in to comment.