CountdownTheme.glassMorphism constructor
Creates a glass morphism theme
Implementation
factory CountdownTheme.glassMorphism({
Color primaryColor = Colors.blue,
double blurRadius = 10.0,
}) {
return CountdownTheme(
primaryColor: primaryColor,
backgroundColor: Colors.white.withValues(alpha: 0.1),
textColor: Colors.white,
iconColor: Colors.white,
borderRadius: 16.0,
borderWidth: 1.0,
borderColor: Colors.white.withValues(alpha: 0.2),
boxShadow: [
BoxShadow(
color: Colors.black.withValues(alpha: 0.1),
blurRadius: blurRadius,
offset: const Offset(0, 4),
),
],
decoration: BoxDecoration(
color: Colors.white.withValues(alpha: 0.1),
borderRadius: BorderRadius.circular(16.0),
border: Border.all(
color: Colors.white.withValues(alpha: 0.2),
width: 1.0,
),
),
);
}