CountdownTheme.professional constructor
CountdownTheme.professional({})
Creates a professional theme with advanced styling
Implementation
factory CountdownTheme.professional({
Color primaryColor = Colors.blue,
bool enableAnimations = true,
bool enableShadows = true,
bool enableRoundedCorners = true,
}) {
return CountdownTheme(
primaryColor: primaryColor,
backgroundColor: Colors.white,
textColor: Colors.black87,
iconColor: primaryColor,
borderRadius: enableRoundedCorners ? 12.0 : 0.0,
boxShadow: enableShadows
? [
BoxShadow(
color: Colors.black.withValues(alpha: 0.08),
blurRadius: 8,
offset: const Offset(0, 2),
),
BoxShadow(
color: Colors.black.withValues(alpha: 0.04),
blurRadius: 4,
offset: const Offset(0, 1),
),
]
: null,
animationConfig: CountdownAnimationConfig(
enabled: enableAnimations,
duration: const Duration(milliseconds: 250),
curve: Curves.easeOutCubic,
enablePulseAnimation: true,
enableShakeAnimation: true,
enableScaleAnimation: true,
enableFadeAnimation: true,
),
);
}