LiquidGlassConfig constructor

const LiquidGlassConfig({
  1. Color? baseColor,
  2. double opacity = 0.1,
  3. double blurAmount = 10.0,
  4. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(20)),
  5. bool enableSpecularHighlight = true,
  6. double refractionIntensity = 0.5,
  7. bool adaptToContent = true,
  8. List<BoxShadow>? shadows,
  9. Border? border,
  10. Gradient? gradient,
  11. Duration animationDuration = const Duration(milliseconds: 300),
  12. Curve animationCurve = Curves.easeInOutCubic,
  13. bool enableParallax = true,
  14. double parallaxIntensity = 0.1,
  15. bool enableCustomShader = false,
  16. double distortionAmount = 0.05,
  17. bool enableDynamicLight = true,
  18. Offset lightPosition = const Offset(0.5, 0.3),
  19. bool enableMorphing = true,
  20. double glassThickness = 1.0,
  21. bool enableChromaticAberration = false,
  22. double frostIntensity = 0.0,
})

Implementation

const LiquidGlassConfig({
  this.baseColor,
  this.opacity = 0.1,
  this.blurAmount = 10.0,
  this.borderRadius = const BorderRadius.all(Radius.circular(20)),
  this.enableSpecularHighlight = true,
  this.refractionIntensity = 0.5,
  this.adaptToContent = true,
  this.shadows,
  this.border,
  this.gradient,
  this.animationDuration = const Duration(milliseconds: 300),
  this.animationCurve = Curves.easeInOutCubic,
  this.enableParallax = true,
  this.parallaxIntensity = 0.1,
  this.enableCustomShader = false,
  this.distortionAmount = 0.05,
  this.enableDynamicLight = true,
  this.lightPosition = const Offset(0.5, 0.3),
  this.enableMorphing = true,
  this.glassThickness = 1.0,
  this.enableChromaticAberration = false,
  this.frostIntensity = 0.0,
});