import 'package:flutter/material.dart'; class AppTheme { static ThemeData get lightTheme { return ThemeData( brightness: Brightness.light, primaryColor: Colors.green, scaffoldBackgroundColor: Colors.grey.shade50, colorScheme: ColorScheme.fromSeed( brightness: Brightness.light, seedColor: Colors.green, primary: Colors.green, secondary: Colors.green.shade300, surface: Colors.white, background: Colors.grey.shade50, ), cardTheme: CardTheme( elevation: 1, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(16.0), ), color: Colors.white, ), appBarTheme: AppBarTheme( backgroundColor: Colors.white, elevation: 0, iconTheme: IconThemeData(color: Colors.green.shade700), titleTextStyle: const TextStyle( color: Colors.black87, fontSize: 22, fontWeight: FontWeight.bold, fontFamily: 'Montserrat', // Ensure font family is applied here too ), ), floatingActionButtonTheme: const FloatingActionButtonThemeData( backgroundColor: Colors.green, foregroundColor: Colors.white, ), bottomNavigationBarTheme: BottomNavigationBarThemeData( backgroundColor: Colors.white, selectedItemColor: Colors.green, unselectedItemColor: Colors.grey.shade600, ), fontFamily: 'Montserrat', ); } static ThemeData get darkTheme { return ThemeData( brightness: Brightness.dark, primaryColor: Colors.green.shade400, scaffoldBackgroundColor: const Color(0xFF121212), colorScheme: ColorScheme.fromSeed( brightness: Brightness.dark, seedColor: Colors.green, primary: Colors.green.shade400, secondary: Colors.green.shade200, surface: const Color(0xFF222222), // Used for Card background in dark theme background: const Color(0xFF121212), onSurface: Colors.white, // Default text color on surface ), cardTheme: CardTheme( elevation: 4, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(16.0), ), color: const Color(0xFF1E1E1E), // Darker card color ), appBarTheme: const AppBarTheme( backgroundColor: Color(0xFF1A1A1A), // Slightly different dark background elevation: 0, iconTheme: IconThemeData(color: Colors.greenAccent), titleTextStyle: TextStyle( color: Colors.white, fontSize: 22, fontWeight: FontWeight.bold, fontFamily: 'Montserrat', // Ensure font family is applied here too ), ), floatingActionButtonTheme: FloatingActionButtonThemeData( backgroundColor: Colors.green.shade400, foregroundColor: Colors.black87, // Better contrast on light green ), bottomNavigationBarTheme: BottomNavigationBarThemeData( backgroundColor: const Color(0xFF1A1A1A), selectedItemColor: Colors.green.shade300, unselectedItemColor: Colors.grey.shade500, ), textTheme: const TextTheme( bodyLarge: TextStyle(color: Colors.white), // Default text style bodyMedium: TextStyle(color: Colors.white70), // Secondary text style // Define other text styles if needed ).apply( // Ensure font family is applied globally for text fontFamily: 'Montserrat', ), fontFamily: 'Montserrat', ); } }