import 'package:flutter/material.dart'; class AppTheme { static const seed = Color(0xFF2E7D6B); static const accent = Color(0xFFF4B740); static const paper = Color(0xFFF7F8F5); static ThemeData light() { final scheme = ColorScheme.fromSeed(seedColor: seed, surface: paper); return _base(scheme); } static ThemeData dark() { final scheme = ColorScheme.fromSeed( seedColor: seed, brightness: Brightness.dark, ); return _base(scheme); } static ThemeData _base(ColorScheme scheme) { return ThemeData( useMaterial3: true, colorScheme: scheme, scaffoldBackgroundColor: scheme.surface, navigationBarTheme: NavigationBarThemeData( indicatorColor: scheme.primaryContainer, labelTextStyle: WidgetStateProperty.resolveWith( (_) => const TextStyle(fontSize: 12, fontWeight: FontWeight.w600), ), ), cardTheme: CardTheme( elevation: 0, margin: EdgeInsets.zero, color: scheme.surfaceContainerHighest.withValues(alpha: 0.55), shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)), ), filledButtonTheme: FilledButtonThemeData( style: FilledButton.styleFrom( minimumSize: const Size(48, 48), shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)), ), ), outlinedButtonTheme: OutlinedButtonThemeData( style: OutlinedButton.styleFrom( minimumSize: const Size(48, 48), shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)), ), ), ); } }