|
|
|
|
@ -79,7 +79,7 @@ class _QuranScreenState extends State<QuranScreen> {
|
|
|
|
|
_surahList = _surahModel.data.map((element) => element.nameAR).toList();
|
|
|
|
|
_currentPage = widget.bookmark?.page ?? 1;
|
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
|
} catch (ex, tr) {
|
|
|
|
|
} catch (ex) {
|
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
|
Utils.handleException(ex, null);
|
|
|
|
|
}
|
|
|
|
|
@ -115,7 +115,7 @@ class _QuranScreenState extends State<QuranScreen> {
|
|
|
|
|
try {
|
|
|
|
|
_ayatTangheemTypeMapped = await TangheemUserApiClient().getTangheemBySurah(_selectedSurah + 1);
|
|
|
|
|
_tangheemWords = _ayatTangheemTypeMapped?.data?.map((e) => e.highlightText)?.toList() ?? [];
|
|
|
|
|
} catch (ex, tr) {
|
|
|
|
|
} catch (ex) {
|
|
|
|
|
Utils.handleException(ex, null);
|
|
|
|
|
} finally {}
|
|
|
|
|
setState(() {});
|
|
|
|
|
@ -125,7 +125,7 @@ class _QuranScreenState extends State<QuranScreen> {
|
|
|
|
|
Utils.showLoading(context);
|
|
|
|
|
try {
|
|
|
|
|
_ayaModel = await TangheemUserApiClient().getAyaByFilter(_selectedSurah + 1, _fromAyaList[_selectedFromAya], _toAyaList[_selectedToAya]);
|
|
|
|
|
} catch (ex, tr) {
|
|
|
|
|
} catch (ex) {
|
|
|
|
|
Utils.handleException(ex, null);
|
|
|
|
|
} finally {
|
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
|
@ -139,7 +139,7 @@ class _QuranScreenState extends State<QuranScreen> {
|
|
|
|
|
_ayaModel = await TangheemUserApiClient().getQuranByPageNo(_currentPage);
|
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
|
setState(() {});
|
|
|
|
|
} catch (ex, tr) {
|
|
|
|
|
} catch (ex) {
|
|
|
|
|
Utils.handleException(ex, null);
|
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
|
}
|
|
|
|
|
@ -234,7 +234,7 @@ class _QuranScreenState extends State<QuranScreen> {
|
|
|
|
|
child: CommonDropDownButton(_selectedFromAya, hintText: "من الاية", list: _fromAyaList.map((e) => "من الاية" + " $e").toList(), onSelect: (index) {
|
|
|
|
|
if (_selectedFromAya != index) {
|
|
|
|
|
_selectedFromAya = index;
|
|
|
|
|
var abc = filteredAyahList.indexOf(_selectedFromAya);
|
|
|
|
|
filteredAyahList.indexOf(_selectedFromAya);
|
|
|
|
|
_toAyaList = filteredAyahList.getRange(_selectedFromAya + 1, filteredAyahList.length)?.toList() ?? [];
|
|
|
|
|
setState(() {});
|
|
|
|
|
}
|
|
|
|
|
|