glass static method
Glassmorphism blur effect
Implementation
static BoxDecoration glass({
double radius = 16,
Color color = Colors.white12,
bool withBorder = true,
}) {
return BoxDecoration(
color: color,
borderRadius: BorderRadius.circular(radius),
border: withBorder ? Border.all(color: Colors.white30, width: 1) : null,
);
}