getSurahArtPath method
getSurahArtPath يعيد ويدجيت المخطوطة الخاصة بإسم السور.
getSurahArtPath returns widget for Quran surah name artistic manuscript path
Implementation
Widget getSurahArtPath({required int index, Color? color}) {
if (_cache.containsKey('allSurahsArtPath')) {
return _cache['allSurahsArtPath'] as Widget;
}
final paths = Text(
(index + 1).toString(),
style: TextStyle(
color: color ?? Colors.black,
fontFamily: "surahName",
fontSize: 38,
package: "quran_library",
),
);
_cache['allSurahsArtPath'] = paths;
return paths;
}