getAllSurahsArtPath method
getAllSurahsArtPath يعيد قائمة ويدجيت المخطوطات الخاصة بإسماء السور.
getAllSurahsArtPath returns list of widgets for all Quran surahs' name artistic manuscript path
Implementation
List<Widget> getAllSurahsArtPath(
{Color? color, double? fontSize, bool? withSurahWord = false}) {
if (_cache.containsKey('allSurahsArtPath')) {
return _cache['allSurahsArtPath'] as List<Widget>;
}
final paths = List.generate(
quranCtrl.surahs.length,
(i) => Text(
withSurahWord!
? 'surah${(i + 1).toString().padLeft(3, '0')}surah-icon'
: 'surah${(i + 1).toString().padLeft(3, '0')}',
style: TextStyle(
color: color ?? Colors.black,
fontFamily: "surah-name-v4",
fontSize: fontSize ?? 38,
package: "quran_library",
),
));
_cache['allSurahsArtPath'] = paths;
return paths;
}