I have set locale of flutter to
Locale("ur","PK")
now i have api from which urdu text is coming, but the problem is that these text have brackets and they are being displayed inverted like ) some text (. Any one know solution for it?
Edit: I will share screen shot and code for context.
Directionality(
textDirection: TextDirection.rtl,
child: Text(
quranScreenController.selectedSurah
.trAyat[index].text,
TextOverflow.ellipsis,
textAlign: lang == "ur"
? TextAlign.right
: TextAlign.justify,
style: TextStyle(
fontFamily: lang == "ur"
? "j_n_n"
: "Poppins",
wordSpacing: 2,
fontSize:
lang == "ur" ? 27.sp : 16.sp,
fontWeight: FontWeight.w500,
),
),
),