GlassContainer constructor

const GlassContainer({
  1. Key? key,
  2. double blur = 15.0,
  3. double opacity = 0.5,
  4. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(20)),
  5. Widget? child,
  6. Color color = Colors.white,
  7. List<BoxShadow>? shadow,
  8. double? height,
  9. double? width,
  10. Color? borderColor,
  11. double borderWidth = 1.5,
  12. bool useGradient = true,
})

Implementation

const GlassContainer({
  Key? key,
  this.blur = 15.0,
  this.opacity = 0.5,
  this.borderRadius = const BorderRadius.all(Radius.circular(20)),
  this.child,
  this.color = Colors.white,
  this.shadow,
  this.height,
  this.width,
  this.borderColor,
  this.borderWidth = 1.5,
  this.useGradient = true,
}) : super(key: key);