glass static method

BoxDecoration glass({
  1. double radius = 16,
  2. Color color = Colors.white12,
  3. bool withBorder = true,
})

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,
  );
}