LiquidGlassConfig constructor
const
LiquidGlassConfig({
- Color? baseColor,
- double opacity = 0.1,
- double blurAmount = 10.0,
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(20)),
- bool enableSpecularHighlight = true,
- double refractionIntensity = 0.5,
- bool adaptToContent = true,
- List<
BoxShadow> ? shadows, - Border? border,
- Gradient? gradient,
- Duration animationDuration = const Duration(milliseconds: 300),
- Curve animationCurve = Curves.easeInOutCubic,
- bool enableParallax = true,
- double parallaxIntensity = 0.1,
- bool enableCustomShader = false,
- double distortionAmount = 0.05,
- bool enableDynamicLight = true,
- Offset lightPosition = const Offset(0.5, 0.3),
- bool enableMorphing = true,
- double glassThickness = 1.0,
- bool enableChromaticAberration = false,
- 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,
});