IndexTabStyle.defaults constructor
IndexTabStyle.defaults({
- required bool isDark,
- required BuildContext context,
Implementation
factory IndexTabStyle.defaults({
required bool isDark,
required BuildContext context,
}) {
final text = AppColors.getTextColor(isDark);
final scheme = Theme.of(context).colorScheme;
final primary = scheme.primary;
return IndexTabStyle(
textColor: text,
accentColor: primary,
tabBarHeight: 35.0,
tabBarRadius: 12.0,
indicatorRadius: 10.0,
indicatorPadding: const EdgeInsets.all(4),
labelColor: Colors.white,
unselectedLabelColor: text.withValues(alpha: 0.6),
labelStyle: QuranLibrary().cairoStyle.copyWith(
fontSize: 13,
fontWeight: FontWeight.w700,
height: 1.3,
),
unselectedLabelStyle: QuranLibrary().cairoStyle.copyWith(
fontSize: 13,
),
tabBarBgAlpha: 0.06,
tabSurahsLabel: 'السور',
tabJozzLabel: 'الأجزاء',
listItemRadius: 8.0,
surahRowAltBgAlpha: 0.1,
jozzAltBgAlpha: 0.1,
hizbItemAltBgAlpha: 0.05,
);
}