BlurBox constructor

const BlurBox({
  1. Key? key,
  2. double? radius = 30.0,
  3. Color? color = Colors.white,
  4. Color? borderColor = Colors.white,
  5. double? opacity = 0.3,
  6. Widget? child,
})

BlurBox 构造函数。

你可以自定义圆角半径、背景色、边框颜色和透明度。

Implementation

const BlurBox({
  super.key,
  this.radius = 30.0, // 默认圆角半径
  this.color = Colors.white, // 默认背景颜色
  this.borderColor = Colors.white, // 默认边框颜色
  this.opacity = 0.3, // 默认透明度
  this.child,
});