dark property
ThemeData
get
dark
Implementation
static ThemeData get dark {
final base = ThemeData.dark(useMaterial3: true);
final textThemeWithPoppins = base.textTheme
.apply(fontFamily: 'Poppins')
.copyWith(
// If you have dark-specific AppTypography styles, also ensure they have Poppins
headlineMedium: AppTypography.h2.copyWith(fontFamily: 'Poppins'),
bodyMedium: AppTypography.body.copyWith(fontFamily: 'Poppins'),
);
return base.copyWith(
colorScheme: ColorScheme.fromSeed(
seedColor: AppColors.primaryDark,
brightness: Brightness.dark,
),
textTheme: textThemeWithPoppins,
bottomSheetTheme: const BottomSheetThemeData(
backgroundColor: Color(0xFF141414), // Modern dark charcoal
surfaceTintColor: Color(0xFF141414),
showDragHandle: true,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(top: Radius.circular(20)),
),
constraints: BoxConstraints(maxWidth: 640),
),
);
}