|
|
|
@ -8,6 +8,8 @@ final appTheme = ThemeData(
|
|
|
|
|
primary: AppColors.primary, |
|
|
|
|
secondary: AppColors.secondary, |
|
|
|
|
), |
|
|
|
|
|
|
|
|
|
/// [Card] |
|
|
|
|
cardTheme: CardTheme( |
|
|
|
|
clipBehavior: Clip.antiAlias, |
|
|
|
|
margin: const EdgeInsets.all(0), |
|
|
|
@ -18,27 +20,42 @@ final appTheme = ThemeData(
|
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
|
|
|
|
|
/// [TextField] |
|
|
|
|
inputDecorationTheme: const InputDecorationTheme( |
|
|
|
|
contentPadding: EdgeInsets.symmetric( |
|
|
|
|
vertical: 14, |
|
|
|
|
horizontal: 16, |
|
|
|
|
), |
|
|
|
|
border: OutlineInputBorder(), |
|
|
|
|
), |
|
|
|
|
|
|
|
|
|
/// [ElevatedButton] |
|
|
|
|
elevatedButtonTheme: ElevatedButtonThemeData( |
|
|
|
|
style: ElevatedButton.styleFrom( |
|
|
|
|
backgroundColor: AppColors.secondary, |
|
|
|
|
minimumSize: const Size.fromHeight(45), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
|
|
|
|
|
/// [OutlinedButton] |
|
|
|
|
outlinedButtonTheme: OutlinedButtonThemeData( |
|
|
|
|
style: ButtonStyle( |
|
|
|
|
foregroundColor: MaterialStateProperty.resolveWith<Color>( |
|
|
|
|
(Set<MaterialState> states) { |
|
|
|
|
if (states.contains(MaterialState.disabled)) { |
|
|
|
|
return AppColors.secondary.withOpacity(0.4); |
|
|
|
|
} else { |
|
|
|
|
return AppColors.secondary; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
), |
|
|
|
|
foregroundColor: |
|
|
|
|
MaterialStateProperty.resolveWith<Color>((Set<MaterialState> states) { |
|
|
|
|
if (states.contains(MaterialState.disabled)) { |
|
|
|
|
return AppColors.secondary.withOpacity(0.4); |
|
|
|
|
} else { |
|
|
|
|
return AppColors.secondary; |
|
|
|
|
} |
|
|
|
|
}), |
|
|
|
|
side: MaterialStateProperty.resolveWith<BorderSide>( |
|
|
|
|
(Set<MaterialState> states) { |
|
|
|
|
if (states.contains(MaterialState.disabled)) { |
|
|
|
|
return BorderSide(color: AppColors.secondary.withOpacity(0.4)); |
|
|
|
|
} else { |
|
|
|
|
return const BorderSide(color: AppColors.secondary); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
), |
|
|
|
|
(Set<MaterialState> states) { |
|
|
|
|
if (states.contains(MaterialState.disabled)) { |
|
|
|
|
return BorderSide(color: AppColors.secondary.withOpacity(0.4)); |
|
|
|
|
} else { |
|
|
|
|
return const BorderSide(color: AppColors.secondary); |
|
|
|
|
} |
|
|
|
|
}), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
|
|
|
|
@ -49,7 +66,7 @@ final appTheme = ThemeData(
|
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
), |
|
|
|
|
headlineMedium: GoogleFonts.roboto( |
|
|
|
|
fontSize: 36, |
|
|
|
|
fontSize: 30, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
), |
|
|
|
|
headlineSmall: GoogleFonts.roboto( |
|
|
|
@ -57,13 +74,16 @@ final appTheme = ThemeData(
|
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
), |
|
|
|
|
titleLarge: GoogleFonts.roboto( |
|
|
|
|
fontSize: 44, |
|
|
|
|
fontSize: 20, |
|
|
|
|
height: 1.3, |
|
|
|
|
), |
|
|
|
|
titleMedium: GoogleFonts.roboto( |
|
|
|
|
fontSize: 36, |
|
|
|
|
fontSize: 18, |
|
|
|
|
height: 1.3, |
|
|
|
|
), |
|
|
|
|
titleSmall: GoogleFonts.roboto( |
|
|
|
|
fontSize: 24, |
|
|
|
|
fontSize: 14, |
|
|
|
|
height: 1.3, |
|
|
|
|
), |
|
|
|
|
bodyLarge: GoogleFonts.openSans( |
|
|
|
|
fontSize: 18, |
|
|
|
|