import 'package:flutter/material.dart'; import 'colors.dart'; /// App theme configuration class AppTheme { // Light Theme static ThemeData get lightTheme { return ThemeData( useMaterial3: true, colorScheme: ColorScheme.light( primary: AppColors.primary, secondary: AppColors.primaryLight, surface: AppColors.surface, error: AppColors.error, ), scaffoldBackgroundColor: AppColors.background, appBarTheme: const AppBarTheme( backgroundColor: AppColors.primary, foregroundColor: Colors.white, elevation: 0, centerTitle: true, ), cardTheme: CardThemeData( elevation: 2, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(12), ), ), floatingActionButtonTheme: const FloatingActionButtonThemeData( backgroundColor: AppColors.primary, foregroundColor: Colors.white, ), inputDecorationTheme: InputDecorationTheme( border: OutlineInputBorder( borderRadius: BorderRadius.circular(8), ), filled: true, fillColor: Colors.white, ), elevatedButtonTheme: ElevatedButtonThemeData( style: ElevatedButton.styleFrom( backgroundColor: AppColors.primary, foregroundColor: Colors.white, padding: const EdgeInsets.symmetric( horizontal: 24, vertical: 12, ), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(8), ), ), ), textButtonTheme: TextButtonThemeData( style: TextButton.styleFrom( foregroundColor: AppColors.primary, ), ), ); } // Dark Theme (for future) static ThemeData get darkTheme { return ThemeData( useMaterial3: true, colorScheme: ColorScheme.dark( primary: AppColors.primaryLight, secondary: AppColors.primary, surface: const Color(0xFF1E1E1E), error: AppColors.error, ), scaffoldBackgroundColor: const Color(0xFF121212), appBarTheme: const AppBarTheme( backgroundColor: Color(0xFF1E1E1E), foregroundColor: Colors.white, elevation: 0, centerTitle: true, ), ); } }