/
siblun
/
ReadFlow
Обзор
Документация
Войти
/
siblun
/
ReadFlow
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
lib/presentation/theme/app_typography.dart
94 строки
2 KB
siblun
Refactor
06 апр 2026, 00:40
06 апр 2026, 00:40
da5576e
Код
Авторство
О чём код?
import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; import 'app_colors.dart'; abstract class AppTypography { static final TextStyle _inter = GoogleFonts.inter(); static final TextStyle _playfair = GoogleFonts.playfairDisplay(); static final TextStyle _instrument = GoogleFonts.instrumentSerif(); static final TextStyle _lora = GoogleFonts.lora(); static final TextStyle _lexend = GoogleFonts.lexend(); static TextStyle h1 = _playfair.copyWith( fontSize: 32, fontWeight: FontWeight.bold, color: AppColors.textMain, ); static TextStyle h2 = _playfair.copyWith( fontSize: 24, fontWeight: FontWeight.w600, color: AppColors.textMain, ); static TextStyle h3 = _playfair.copyWith( fontSize: 20, fontWeight: FontWeight.w500, color: AppColors.textMain, ); static TextStyle bodyLarge = _inter.copyWith( fontSize: 16, fontWeight: FontWeight.normal, color: AppColors.textMain, ); static TextStyle bodyMedium = _inter.copyWith( fontSize: 14, fontWeight: FontWeight.w500, color: AppColors.textMain, ); static TextStyle label = _inter.copyWith( fontSize: 12, fontWeight: FontWeight.normal, color: AppColors.accentSecondary, ); static TextStyle timerDisplay = _inter.copyWith( fontSize: 56, fontWeight: FontWeight.w300, color: AppColors.textMain, ); static TextStyle displayLarge = _instrument.copyWith( fontSize: 38, color: AppColors.textMain, ); static TextStyle displayMedium = _instrument.copyWith( fontSize: 26, fontStyle: FontStyle.italic, color: AppColors.primaryAction, ); static TextStyle quote = _lora.copyWith( fontSize: 15, fontStyle: FontStyle.italic, height: 1.63, color: AppColors.textMain, ); static TextStyle pageInput = _lexend.copyWith( fontSize: 30, fontWeight: FontWeight.w700, color: AppColors.primaryAction, ); static TextStyle buttonText = bodyLarge.copyWith( fontWeight: FontWeight.w600, color: AppColors.white, ); static TextStyle overline = h3.copyWith( fontSize: 10, fontWeight: FontWeight.w700, letterSpacing: 0.5, ); static TextStyle navActive = h3.copyWith( fontSize: 11, fontWeight: FontWeight.w700, letterSpacing: 0.2, ); }