46 lines
1.5 KiB
Dart
46 lines
1.5 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
class AppTheme {
|
|
static ThemeData get darkTheme {
|
|
return ThemeData.dark(useMaterial3: true).copyWith(
|
|
scaffoldBackgroundColor: const Color(0xFF0D0D0D),
|
|
appBarTheme: const AppBarTheme(
|
|
backgroundColor: Colors.transparent,
|
|
elevation: 0,
|
|
centerTitle: true,
|
|
),
|
|
colorScheme: const ColorScheme.dark(
|
|
primary: Color(0xFF00E5FF),
|
|
secondary: Color(0xFFFF2A2A),
|
|
surface: Color(0xFF1A1A1A),
|
|
),
|
|
|
|
segmentedButtonTheme: SegmentedButtonThemeData(
|
|
style: ButtonStyle(
|
|
backgroundColor: WidgetStateProperty.resolveWith<Color?>(
|
|
(Set<WidgetState> states) {
|
|
if (states.contains(WidgetState.selected)) {
|
|
return const Color(0xFF00E5FF).withOpacity(0.2); // Cyan with opacity for selected
|
|
}
|
|
return null; // Use default for unselected
|
|
},
|
|
),
|
|
foregroundColor: WidgetStateProperty.resolveWith<Color?>(
|
|
(Set<WidgetState> states) {
|
|
if (states.contains(WidgetState.selected)) {
|
|
return const Color(0xFF00E5FF); // Cyan text for selected
|
|
}
|
|
return Colors.white70; // White text for unselected
|
|
},
|
|
),
|
|
),
|
|
),
|
|
cardTheme: CardThemeData(
|
|
color: const Color(0xFF1A1A1A),
|
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
|
|
elevation: 4,
|
|
),
|
|
);
|
|
}
|
|
}
|