fix: some warnings remove + light / ugly theme added

This commit is contained in:
2026-07-29 21:25:47 +02:00
parent 031a618220
commit cd75d3a474
8 changed files with 107 additions and 52 deletions
+63 -37
View File
@@ -462,11 +462,10 @@ final ThemeData neoBrutalDarkTheme = ThemeData(
);
const _violetL = Color(0xFF7C3AED);
const _violetSoftL = Color(0xFF6D28D9);
const _bgL = Color(0xFFFAFAFC);
const _bgL = Color(0xFFF6F5F3);
const _surfaceL = Color(0xFFFFFFFF);
const _surfaceRaisedL = Color(0xFFF3F1F8);
const _outlineL = Color(0x14000000); // ~8% black
const _surfaceRaisedL = Color(0xFFF0EDE7);
const _outlineL = Color(0x1A000000); // ~10% black
final ThemeData lightTheme = ThemeData(
useMaterial3: true,
@@ -477,7 +476,7 @@ final ThemeData lightTheme = ThemeData(
seedColor: _violetL,
brightness: Brightness.light,
surface: _surfaceL,
error: const Color(0xFFE5484D),
error: const Color(0xFFDC2626),
),
scaffoldBackgroundColor: _bgL,
@@ -487,22 +486,28 @@ final ThemeData lightTheme = ThemeData(
elevation: 0,
centerTitle: false,
backgroundColor: _bgL,
foregroundColor: Colors.black87,
foregroundColor: const Color(0xFF1A1A1A),
surfaceTintColor: Colors.transparent,
titleTextStyle: const TextStyle(
fontSize: 22,
fontWeight: FontWeight.w800,
letterSpacing: -0.3,
color: Colors.black87,
color: Color(0xFF1A1A1A),
),
iconTheme: const IconThemeData(
color: Color(0xFF5C5C5C),
size: 22,
),
actionsIconTheme: const IconThemeData(
color: Color(0xFF5C5C5C),
size: 22,
),
iconTheme: const IconThemeData(color: Colors.black54, size: 22),
actionsIconTheme: const IconThemeData(color: Colors.black54, size: 22),
),
iconButtonTheme: IconButtonThemeData(
style: IconButton.styleFrom(
backgroundColor: Colors.black.withValues(alpha: 0.04),
foregroundColor: Colors.black54,
backgroundColor: const Color(0x08000000),
foregroundColor: const Color(0xFF5C5C5C),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(AppRadii.md),
),
@@ -512,7 +517,8 @@ final ThemeData lightTheme = ThemeData(
cardTheme: CardThemeData(
color: _surfaceL,
elevation: 0,
elevation: 1,
shadowColor: const Color(0x0C000000),
margin: const EdgeInsets.symmetric(
horizontal: AppSpacing.md,
vertical: AppSpacing.sm,
@@ -528,8 +534,8 @@ final ThemeData lightTheme = ThemeData(
elevation: 0,
backgroundColor: _violetL,
foregroundColor: Colors.white,
disabledBackgroundColor: Colors.black.withValues(alpha: 0.06),
disabledForegroundColor: Colors.black26,
disabledBackgroundColor: const Color(0x0F000000),
disabledForegroundColor: const Color(0x42000000),
padding: const EdgeInsets.symmetric(
horizontal: AppSpacing.xl,
vertical: AppSpacing.lg,
@@ -563,7 +569,7 @@ final ThemeData lightTheme = ThemeData(
outlinedButtonTheme: OutlinedButtonThemeData(
style: OutlinedButton.styleFrom(
foregroundColor: Colors.black87,
foregroundColor: const Color(0xFF1A1A1A),
side: const BorderSide(color: _outlineL, width: 1.4),
padding: const EdgeInsets.symmetric(
horizontal: AppSpacing.xl,
@@ -577,7 +583,7 @@ final ThemeData lightTheme = ThemeData(
textButtonTheme: TextButtonThemeData(
style: TextButton.styleFrom(
foregroundColor: Colors.black54,
foregroundColor: const Color(0xFF5C5C5C),
padding: const EdgeInsets.symmetric(
horizontal: AppSpacing.lg,
vertical: AppSpacing.md,
@@ -590,8 +596,8 @@ final ThemeData lightTheme = ThemeData(
inputDecorationTheme: InputDecorationTheme(
filled: true,
fillColor: _surfaceRaisedL,
hintStyle: const TextStyle(color: Colors.black38),
fillColor: _surfaceL,
hintStyle: const TextStyle(color: Color(0xFF9E9E9E)),
contentPadding: const EdgeInsets.symmetric(
horizontal: AppSpacing.lg,
vertical: AppSpacing.lg,
@@ -613,27 +619,31 @@ final ThemeData lightTheme = ThemeData(
dialogTheme: DialogThemeData(
backgroundColor: _surfaceL,
surfaceTintColor: Colors.transparent,
elevation: 8,
elevation: 12,
shadowColor: const Color(0x18000000),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(AppRadii.lg),
),
titleTextStyle: const TextStyle(
color: Colors.black87,
color: Color(0xFF1A1A1A),
fontSize: 19,
fontWeight: FontWeight.w800,
),
contentTextStyle: const TextStyle(color: Colors.black54, height: 1.4),
contentTextStyle: const TextStyle(
color: Color(0xFF5C5C5C),
height: 1.4,
),
),
floatingActionButtonTheme: const FloatingActionButtonThemeData(
backgroundColor: _violetL,
foregroundColor: Colors.white,
elevation: 2,
elevation: 3,
),
navigationBarTheme: NavigationBarThemeData(
backgroundColor: _surfaceL,
indicatorColor: _violetL.withValues(alpha: 0.15),
indicatorColor: _violetL.withValues(alpha: 0.12),
labelTextStyle: const WidgetStatePropertyAll(
TextStyle(fontWeight: FontWeight.w600),
),
@@ -644,8 +654,8 @@ final ThemeData lightTheme = ThemeData(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(AppRadii.md),
),
iconColor: _violetSoftL,
textColor: Colors.black87,
iconColor: _violetL,
textColor: const Color(0xFF1A1A1A),
contentPadding: const EdgeInsets.symmetric(
horizontal: AppSpacing.md,
vertical: AppSpacing.xs,
@@ -653,9 +663,9 @@ final ThemeData lightTheme = ThemeData(
),
snackBarTheme: SnackBarThemeData(
backgroundColor: Colors.black87,
backgroundColor: const Color(0xFF1E1E24),
behavior: SnackBarBehavior.floating,
elevation: 4,
elevation: 6,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(AppRadii.md),
),
@@ -671,11 +681,11 @@ final ThemeData lightTheme = ThemeData(
chipTheme: ChipThemeData(
backgroundColor: _surfaceRaisedL,
labelStyle: const TextStyle(
color: Colors.black87,
color: Color(0xFF1A1A1A),
fontWeight: FontWeight.w600,
fontSize: 12,
),
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 4),
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 6),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(AppRadii.sm),
side: const BorderSide(color: _outlineL),
@@ -683,21 +693,37 @@ final ThemeData lightTheme = ThemeData(
),
textTheme: const TextTheme(
displayLarge: TextStyle(color: Colors.black87, fontWeight: FontWeight.w800),
displayLarge: TextStyle(
color: Color(0xFF1A1A1A),
fontWeight: FontWeight.w800,
),
headlineMedium: TextStyle(
color: Colors.black87,
color: Color(0xFF1A1A1A),
fontWeight: FontWeight.w800,
letterSpacing: -0.3,
),
titleLarge: TextStyle(
color: Colors.black87,
color: Color(0xFF1A1A1A),
fontWeight: FontWeight.w800,
letterSpacing: -0.2,
),
titleMedium: TextStyle(color: Colors.black87, fontWeight: FontWeight.w700),
bodyLarge: TextStyle(color: Colors.black54, fontSize: 16, height: 1.5),
bodyMedium: TextStyle(color: Colors.black45, height: 1.4),
bodySmall: TextStyle(color: Colors.black38, height: 1.3),
labelLarge: TextStyle(color: Colors.black87, fontWeight: FontWeight.w700),
titleMedium: TextStyle(
color: Color(0xFF1A1A1A),
fontWeight: FontWeight.w700,
),
bodyLarge: TextStyle(
color: Color(0xFF5C5C5C),
fontSize: 16,
height: 1.5,
),
bodyMedium: TextStyle(color: Color(0xFF757575), height: 1.4),
bodySmall: TextStyle(
color: Color(0xFF9E9E9E),
height: 1.3,
),
labelLarge: TextStyle(
color: Color(0xFF1A1A1A),
fontWeight: FontWeight.w700,
),
),
);