Examples
1. Simple Text
ArabicJustifiedText(
'مرحباً بك في عالم البرمجة الجميل',
)
2. Text with Diacritics (Tashkeel)
ArabicJustifiedText(
'بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ',
style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
)
3. Multi-line Text with Line Breaks
ArabicJustifiedText(
'''السطر الأول من النص
السطر الثاني من النص
السطر الثالث من النص''',
style: TextStyle(fontSize: 16, height: 2.0),
)
4. Mixed Arabic and English
ArabicJustifiedText(
'استخدم Flutter لبناء تطبيقات mobile رائعة',
style: TextStyle(fontSize: 18),
)
5. With Maximum Lines
ArabicJustifiedText(
'نص طويل جداً يحتوي على الكثير من الكلمات والجمل...',
maxLines: 3,
overflow: TextOverflow.ellipsis,
)
6. Toggle Kashida On/Off
bool useKashida = true;
ArabicJustifiedText(
'النص العربي هنا',
enableKashida: useKashida,
)