Resolve all lints and deprecation warnings

This commit is contained in:
2026-01-09 10:04:51 -06:00
parent 512577b092
commit a799e9cf59
56 changed files with 2819 additions and 3159 deletions

View File

@@ -131,7 +131,7 @@ class AppTheme {
cardTheme: CardThemeData(
color: Colors.white,
elevation: 2,
shadowColor: AppColors.charcoal.withOpacity(0.1),
shadowColor: AppColors.charcoal.withValues(alpha: 0.1),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(16),
),
@@ -186,11 +186,13 @@ class AppTheme {
fillColor: Colors.white,
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
borderSide: BorderSide(color: AppColors.lightGray.withOpacity(0.5)),
borderSide:
BorderSide(color: AppColors.lightGray.withValues(alpha: 0.5)),
),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
borderSide: BorderSide(color: AppColors.lightGray.withOpacity(0.5)),
borderSide:
BorderSide(color: AppColors.lightGray.withValues(alpha: 0.5)),
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
@@ -231,15 +233,15 @@ class AppTheme {
// Slider Theme
sliderTheme: SliderThemeData(
activeTrackColor: accentColor,
inactiveTrackColor: AppColors.lightGray.withOpacity(0.3),
inactiveTrackColor: AppColors.lightGray.withValues(alpha: 0.3),
thumbColor: accentColor,
overlayColor: accentColor.withOpacity(0.2),
overlayColor: accentColor.withValues(alpha: 0.2),
trackHeight: 4,
),
// Divider
dividerTheme: DividerThemeData(
color: AppColors.lightGray.withOpacity(0.3),
color: AppColors.lightGray.withValues(alpha: 0.3),
thickness: 1,
space: 24,
),
@@ -262,7 +264,7 @@ class AppTheme {
onSecondary: Colors.white,
onSurface: Colors.white,
onSurfaceVariant: Colors.white70,
outline: Colors.white.withOpacity(0.1),
outline: Colors.white.withValues(alpha: 0.1),
),
// Scaffold
@@ -338,11 +340,12 @@ class AppTheme {
// Card Theme
cardTheme: CardThemeData(
color: const Color(0xFF1E1E1E),
elevation: 0, // Material 3 uses color/opacity for elevation in dark mode
elevation:
0, // Material 3 uses color/opacity for elevation in dark mode
shadowColor: Colors.transparent,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(16),
side: BorderSide(color: Colors.white.withOpacity(0.05)),
side: BorderSide(color: Colors.white.withValues(alpha: 0.05)),
),
margin: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
),
@@ -367,7 +370,8 @@ class AppTheme {
outlinedButtonTheme: OutlinedButtonThemeData(
style: OutlinedButton.styleFrom(
foregroundColor: accentColor,
side: BorderSide(color: accentColor.withOpacity(0.5), width: 1.5),
side:
BorderSide(color: accentColor.withValues(alpha: 0.5), width: 1.5),
padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 14),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12),
@@ -385,11 +389,11 @@ class AppTheme {
fillColor: const Color(0xFF1E1E1E),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
borderSide: BorderSide(color: Colors.white.withOpacity(0.1)),
borderSide: BorderSide(color: Colors.white.withValues(alpha: 0.1)),
),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
borderSide: BorderSide(color: Colors.white.withOpacity(0.1)),
borderSide: BorderSide(color: Colors.white.withValues(alpha: 0.1)),
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
@@ -423,9 +427,9 @@ class AppTheme {
// Slider Theme
sliderTheme: SliderThemeData(
activeTrackColor: accentColor,
inactiveTrackColor: Colors.white.withOpacity(0.1),
inactiveTrackColor: Colors.white.withValues(alpha: 0.1),
thumbColor: accentColor,
overlayColor: accentColor.withOpacity(0.2),
overlayColor: accentColor.withValues(alpha: 0.2),
trackHeight: 4,
tickMarkShape: const RoundSliderTickMarkShape(),
activeTickMarkColor: Colors.white24,
@@ -434,7 +438,7 @@ class AppTheme {
// Divider
dividerTheme: DividerThemeData(
color: Colors.white.withOpacity(0.05),
color: Colors.white.withValues(alpha: 0.05),
thickness: 1,
space: 24,
),