CountdownTheme.dark constructor

CountdownTheme.dark({
  1. Color primaryColor = Colors.blue,
})

Creates a theme with dark mode colors

Implementation

factory CountdownTheme.dark({
  Color primaryColor = Colors.blue,
}) {
  return CountdownTheme(
    primaryColor: primaryColor,
    backgroundColor: Colors.grey.shade900,
    textColor: Colors.white,
    iconColor: primaryColor,
    borderColor: Colors.grey.shade700,
    boxShadow: [
      BoxShadow(
        color: Colors.black.withValues(alpha: 0.3),
        blurRadius: 4,
        offset: const Offset(0, 2),
      ),
    ],
  );
}