getAllSurahsArtPath method

List<Widget> getAllSurahsArtPath({
  1. Color? color,
})

getAllSurahsArtPath يعيد قائمة ويدجيت المخطوطات الخاصة بإسماء السور.

getAllSurahsArtPath returns list of widgets for all Quran surahs' name artistic manuscript path

Implementation

List<Widget> getAllSurahsArtPath({Color? color}) {
  if (_cache.containsKey('allSurahsArtPath')) {
    return _cache['allSurahsArtPath'] as List<Widget>;
  }
  final paths = List.generate(
      quranCtrl.surahs.length,
      (i) => Text(
            (i + 1).toString(),
            style: TextStyle(
              color: color ?? Colors.black,
              fontFamily: "surahName",
              fontSize: 38,
              package: "quran_library",
            ),
          ));
  _cache['allSurahsArtPath'] = paths;
  return paths;
}