darkTheme property
ThemeData
get
darkTheme
Implementation
ThemeData get darkTheme {
return ThemeData(
brightness: Brightness.dark,
fontFamily: AppTextStyles.fontFamily,
primaryColor: AppColors.primary,
primarySwatch: AppColors.primarySwatch,
hintColor: AppColors.hint,
shadowColor: AppColors.shadow,
cardColor: AppColors.card,
scaffoldBackgroundColor: AppColors.background,
textTheme: TextThemes(context: context).darkTextTheme,
primaryTextTheme: TextThemes(context: context).primaryTextTheme,
disabledColor: AppColors.disable,
appBarTheme: const AppBarTheme(
elevation: 0,
backgroundColor: AppColors.background,
titleTextStyle: AppTextStyles.titleLarge,
),
colorScheme: const ColorScheme.dark(
secondary: AppColors.suface,
primary: AppColors.primary,
error: AppColors.error,
scrim: AppColors.suface,
tertiary: AppColors.tertiary,
),
);
}