You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cloudsolutions-atoms/lib/new_views/app_style/app_themes.dart

52 lines
2.8 KiB
Dart

import 'package:flutter/material.dart';
import 'package:test_sa/new_views/app_style/app_color.dart';
class AppThemes {
AppThemes._();
static ThemeData lightTheme = ThemeData.light().copyWith(
textTheme: ThemeData.light().textTheme.apply(fontFamily: "Poppins"),
primaryColor: AppColor.primary50,
indicatorColor: AppColor.primary50,
scaffoldBackgroundColor: AppColor.backgroundLight,
colorScheme: const ColorScheme.light(primary: AppColor.primary50, onPrimary: Colors.white, secondary: Colors.white, onSecondary: AppColor.neutral70),
floatingActionButtonTheme: const FloatingActionButtonThemeData(backgroundColor: AppColor.backgroundDark),
bottomNavigationBarTheme: BottomNavigationBarThemeData(
type: BottomNavigationBarType.fixed,
unselectedLabelStyle: ThemeData.light().textTheme.bodySmall?.copyWith(fontWeight: FontWeight.w500),
selectedLabelStyle: ThemeData.light().textTheme.bodySmall?.copyWith(fontWeight: FontWeight.w500),
selectedItemColor: AppColor.primary70,
unselectedItemColor: AppColor.neutral20,
backgroundColor: Colors.white,
),
appBarTheme: const AppBarTheme(backgroundColor: AppColor.backgroundLight, titleTextStyle: TextStyle(color: AppColor.neutral50)),
cardTheme: ThemeData.light().cardTheme.copyWith(
elevation: 3,
shadowColor: Colors.white.withOpacity(0.05),
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)),
),
);
static ThemeData darkTheme = ThemeData.dark().copyWith(
textTheme: ThemeData.dark().textTheme.apply(fontFamily: "Poppins"),
primaryColor: AppColor.primary50,
indicatorColor: AppColor.primary50,
scaffoldBackgroundColor: AppColor.backgroundDark,
colorScheme: const ColorScheme.light(primary: AppColor.primary50, onPrimary: AppColor.neutral60, secondary: AppColor.neutral60, onSecondary: Colors.white),
floatingActionButtonTheme: const FloatingActionButtonThemeData(backgroundColor: AppColor.primary40),
bottomNavigationBarTheme: BottomNavigationBarThemeData(
type: BottomNavigationBarType.fixed,
unselectedLabelStyle: ThemeData.dark().textTheme.bodySmall?.copyWith(fontWeight: FontWeight.w500),
selectedLabelStyle: ThemeData.dark().textTheme.bodySmall?.copyWith(fontWeight: FontWeight.w500),
selectedItemColor: AppColor.primary40,
unselectedItemColor: AppColor.neutral10,
backgroundColor: AppColor.neutral60,
),
appBarTheme: const AppBarTheme(backgroundColor: AppColor.backgroundDark, titleTextStyle: TextStyle(color: AppColor.neutral30)),
cardTheme: ThemeData.dark().cardTheme.copyWith(
elevation: 3,
shadowColor: Colors.white.withOpacity(0.05),
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)),
),
);
}