TasmeeStyle.defaults constructor
TasmeeStyle.defaults({
- required bool isDark,
- required BuildContext context,
Implementation
factory TasmeeStyle.defaults(
{required bool isDark, required BuildContext context}) {
final scheme = Theme.of(context).colorScheme;
return TasmeeStyle(
backgroundColor: AppColors.getBackgroundColor(isDark),
hiddenWordColor: AppColors.getBackgroundColor(isDark),
textColor: AppColors.getTextColor(isDark),
accentColor: scheme.primary,
correctColor: isDark ? const Color(0xFF81C784) : const Color(0xFF2E7D32),
incorrectColor:
isDark ? const Color(0xFFE57373) : const Color(0xFFC62828),
tajweedErrorColor:
isDark ? const Color(0xFFB39DDB) : const Color(0xFF6A1B9A),
normalErrorColor:
isDark ? const Color(0xFFE57373) : const Color(0xFFC62828),
tashkeelErrorColor:
isDark ? const Color(0xFFFFB74D) : const Color(0xFFEF6C00),
recordButtonColor: scheme.primary,
stopButtonColor:
isDark ? const Color(0xFFE57373) : const Color(0xFFC62828),
iconColor: scheme.primary,
borderRadius: 12,
height: 60,
elevation: 5,
shadowColor: Colors.black.withValues(alpha: .2),
startRecordingLabel: 'ابدأ التسميع',
stopRecordingLabel: 'إيقاف وعرض النتيجة',
processingLabel: 'جارٍ تحليل التلاوة…',
recordingLabel: 'جارٍ التسميع',
settingsLabel: 'إعدادات التسميع',
retryLabel: 'إعادة التسميع',
exitLabel: 'خروج من وضع التسميع',
showWordsLabel: 'إظهار الكلام',
hideWordsLabel: 'إخفاء الكلام',
resultsToggleLabel: 'عرض نتيجة التسميع',
resultsTitle: 'نتيجة التسميع',
noErrorsLabel: 'أحسنت! لا أخطاء',
totalErrorsLabel: 'إجمالي الأخطاء',
tajweedErrorsLabel: 'تجويد',
normalErrorsLabel: 'نطق',
tashkeelErrorsLabel: 'تشكيل',
expectedLabel: 'المتوقع',
actualLabel: 'المنطوق',
engineLocalLabel: 'نموذج محلي (يعمل دون إنترنت)',
engineServerLabel: 'خادم Muaalem (تصحيح بعد الإيقاف)',
serverUrlLabel: 'عنوان الخادم',
checkServerLabel: 'فحص الاتصال',
modelDownloadTitle: 'تنزيل نموذج التسميع',
modelDownloadNote: 'نموذج بحجم 73MB يُنزَّل مرة واحدة فقط، ثم يعمل '
'التسميع دون اتصال بالإنترنت.',
disclaimer: 'التصحيح الآلي قد يخطئ ولا يغني عن معلم مجاز — الأداء '
'للأطفال دون 12 عاماً أقلّ دقة.',
);
}