getTDarkTheme function
Implementation
ThemeData getTDarkTheme() {
return ThemeData(
brightness: Brightness.dark,
textTheme: getTTextTheme(),
colorScheme: ColorScheme.dark(
primary: AppColors.primary,
onPrimary: Colors.white,
primaryContainer: AppColors.primary.shade700,
onPrimaryContainer: AppColors.primary.shade200,
secondary: AppColors.secondary,
onSecondary: Colors.white,
secondaryContainer: AppColors.secondary.shade700,
onSecondaryContainer: AppColors.secondary.shade200,
error: AppColors.danger,
onError: Colors.white,
errorContainer: AppColors.danger.shade700,
onErrorContainer: AppColors.danger.shade200,
surface: AppColors.grey[950]!,
surfaceDim: AppColors.grey.shade900,
surfaceContainerLowest: AppColors.grey.shade700,
surfaceContainerLow: AppColors.grey.shade800,
surfaceContainer: AppColors.grey.shade800.withAlpha(200),
surfaceContainerHigh: AppColors.grey.shade900.withAlpha(150),
onSurface: AppColors.grey.shade300,
onSurfaceVariant: AppColors.grey.shade400,
outline: AppColors.grey.shade800,
outlineVariant: AppColors.grey.shade900,
shadow: AppColors.grey.shade900.withAlpha(100),
scrim: AppColors.grey.shade900.withAlpha(50),
),
).copyWith(extensions: [
TColorScheme().copyWith(
layoutFrame: AppColors.grey.shade900,
)
]);
}