반응형
import 'package:flutter/material.dart';
import 'package:wordgame/core/theme/app_colors.dart';
import 'package:wordgame/core/theme/app_fonts.dart';
class AppTheme{
static ThemeData getTheme(){
return ThemeData(
colorScheme: const ColorScheme(
brightness: Brightness.dark,
primary: AppColors.primary,
onPrimary: AppColors.onSurface,
secondary: AppColors.secondary,
onSecondary: AppColors.onSurface,
error: AppColors.red,
onError: AppColors.surface,
surface: AppColors.surface,
onSurface: AppColors.text),
textTheme: TextTheme(
bodySmall: TextStyle(
fontFamily: AppFonts.fontFamily,
fontSize: 14,
fontWeight: FontWeight.w400,
),
bodyMedium: TextStyle(
fontFamily: AppFonts.fontFamily,
fontSize: 16,
fontWeight: FontWeight.w400,
),
bodyLarge: TextStyle(
fontFamily: AppFonts.fontFamily,
fontSize: 18,
fontWeight: FontWeight.w400,
),
headlineSmall: TextStyle(
fontFamily: AppFonts.fontFamily,
fontSize: 20,
fontWeight: FontWeight.w600,
),
headlineMedium: TextStyle(
fontFamily: AppFonts.fontFamily,
fontSize: 24,
fontWeight: FontWeight.w600,
),
headlineLarge: TextStyle(
fontFamily: AppFonts.fontFamily,
fontSize: 32,
fontWeight: FontWeight.w700,
),
)
);
}
}반응형
'새내기 게임 개발자[Unity]' 카테고리의 다른 글
| toonflix main.dart (0) | 2025.10.31 |
|---|---|
| Flutter Word Game core/theme/app_fonts.dart (0) | 2025.10.19 |
| Flutter Word Game core/theme/app_colors.dart (0) | 2025.10.19 |
| Flutter Word Game core/router/app_router.dart (0) | 2025.10.19 |
| Flutter WordGame core/get_it.dart (0) | 2025.10.19 |