You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.3 KiB
54 lines
1.3 KiB
import 'package:flutter/material.dart'; |
|
import 'package:flutter_example_packages/theme/colors.dart'; |
|
import 'package:flutter_example_packages/theme/radius.dart'; |
|
import 'package:google_fonts/google_fonts.dart'; |
|
|
|
final appTheme = ThemeData( |
|
colorScheme: ThemeData().colorScheme.copyWith( |
|
primary: AppColors.primary, |
|
secondary: AppColors.secondary, |
|
), |
|
cardTheme: CardTheme( |
|
clipBehavior: Clip.antiAlias, |
|
margin: const EdgeInsets.all(0), |
|
color: AppColors.primary.withOpacity(0.4), |
|
elevation: 0, |
|
shape: RoundedRectangleBorder( |
|
borderRadius: AppRadius.small, |
|
), |
|
), |
|
|
|
/// [Text] |
|
textTheme: TextTheme( |
|
headlineLarge: GoogleFonts.ubuntu( |
|
fontSize: 60, |
|
fontWeight: FontWeight.bold, |
|
), |
|
headlineMedium: GoogleFonts.ubuntu( |
|
fontSize: 40, |
|
fontWeight: FontWeight.bold, |
|
), |
|
headlineSmall: GoogleFonts.ubuntu( |
|
fontSize: 24, |
|
fontWeight: FontWeight.bold, |
|
), |
|
titleLarge: GoogleFonts.ubuntu( |
|
fontSize: 60, |
|
), |
|
titleMedium: GoogleFonts.ubuntu( |
|
fontSize: 40, |
|
), |
|
titleSmall: GoogleFonts.ubuntu( |
|
fontSize: 24, |
|
), |
|
bodyLarge: GoogleFonts.ubuntu( |
|
fontSize: 18, |
|
), |
|
bodyMedium: GoogleFonts.ubuntu( |
|
fontSize: 16, |
|
), |
|
bodySmall: GoogleFonts.ubuntu( |
|
fontSize: 12, |
|
), |
|
), |
|
);
|
|
|