import 'package:flutter/material.dart';
import 'package:shared/themes/typography.dart';
enum AppThemess{
darkTheme,lightTheme
}
class AppThemes {
static final appThemeData = {
AppThemess.darkTheme: ThemeData(
primarySwatch: Colors.grey,
primaryColor: Colors.black,
brightness: Brightness.dark,
backgroundColor: const Color(0xFF212121),
colorScheme: ColorScheme.dark(),
dividerColor: Colors.black54,
floatingActionButtonTheme: const FloatingActionButtonThemeData(
backgroundColor: Colors.white,
),
textButtonTheme: TextButtonThemeData(
style: ButtonStyle(
foregroundColor: MaterialStateProperty.all(Colors.white),
),
),
textTheme: TextTheme(
titleMedium: AppTypography.smallMedium.copyWith(color: Colors.white),
titleLarge: AppTypography.mediumRegular.copyWith(
color: Colors.white,fontWeight: FontWeight.w400,letterSpacing: 0.16,fontSize: 18,
),
headlineSmall: AppTypography.headingSmall.copyWith(
fontSize: 20, color: Colors.white,
fontWeight: FontWeight.w600,
),
headlineMedium: AppTypography.headingMedium.copyWith(
fontSize: 22,
color: Colors.white,
fontWeight: FontWeight.w600,
height: 1.17,
),
),
bottomNavigationBarTheme: const BottomNavigationBarThemeData(
backgroundColor: Colors.grey, unselectedItemColor: Colors.white),
),
AppThemess.lightTheme: ThemeData(
primarySwatch: Colors.grey,
primaryColor: Colors.white,
brightness: Brightness.light,
backgroundColor: const Color(0xFFE5E5E5),
colorScheme: ColorScheme.light(),
dividerColor: const Color(0xff757575),
floatingActionButtonTheme: const FloatingActionButtonThemeData(
backgroundColor: Colors.black,
foregroundColor: Colors.white,
),
textButtonTheme: TextButtonThemeData(
style: ButtonStyle(
foregroundColor: MaterialStateProperty.all(Colors.black),
),
),
textTheme: TextTheme(
titleMedium: AppTypography.smallMedium.copyWith(color: Colors.black),
titleLarge: AppTypography.mediumRegular.copyWith(
color: Colors.black,fontWeight: FontWeight.w400,letterSpacing: 0.16,fontSize: 18,
),
headlineSmall: AppTypography.headingSmall.copyWith(
fontSize: 20, color: Colors.black,
fontWeight: FontWeight.w600,
),
headlineMedium: AppTypography.headingMedium.copyWith(
fontSize: 22,
color: Colors.black,
fontWeight: FontWeight.w600,
height: 1.17,
),
),
bottomNavigationBarTheme: const BottomNavigationBarThemeData(
backgroundColor: Colors.grey,
selectedItemColor: Colors.black,
unselectedItemColor: Colors.white),
),
};
}