dark static method
Implementation
static ThemeData dark() {
final colorScheme = ColorScheme.fromSeed(
seedColor: NeomageColors.amber,
brightness: Brightness.dark,
surface: NeomageColors.darkSurface,
onSurface: NeomageColors.darkTextPrimary,
error: NeomageColors.error,
);
return ThemeData(
useMaterial3: true,
brightness: Brightness.dark,
colorScheme: colorScheme,
scaffoldBackgroundColor: NeomageColors.darkBg,
appBarTheme: const AppBarTheme(
centerTitle: false,
elevation: 0,
scrolledUnderElevation: 1,
backgroundColor: NeomageColors.darkSurface,
foregroundColor: NeomageColors.darkTextPrimary,
),
cardTheme: CardThemeData(
elevation: 0,
color: NeomageColors.darkCard,
shape: RoundedRectangleBorder(
borderRadius: NeomageRadius.borderLg,
side: const BorderSide(color: NeomageColors.darkBorder, width: 0.5),
),
),
inputDecorationTheme: InputDecorationTheme(
filled: true,
fillColor: NeomageColors.darkElevated,
border: OutlineInputBorder(borderRadius: NeomageRadius.borderMd),
contentPadding: const EdgeInsets.symmetric(
horizontal: 12,
vertical: 10,
),
),
dividerTheme: const DividerThemeData(
color: NeomageColors.darkBorder,
thickness: 0.5,
),
tooltipTheme: TooltipThemeData(
decoration: BoxDecoration(
color: NeomageColors.darkTextPrimary,
borderRadius: NeomageRadius.borderSm,
),
textStyle: NeomageTypography.caption.copyWith(color: NeomageColors.darkBg),
),
);
}