FloaticaGlassEffect.liquidGlassClear constructor

const FloaticaGlassEffect.liquidGlassClear({
  1. double blur = 18.0,
  2. double opacity = 0.06,
  3. Color? tintColor,
  4. Gradient? gradient = const LinearGradient(begin: Alignment.topLeft, end: Alignment.bottomRight, colors: [Color(0x18FFFFFF), Color(0x0CFFFFFF), Color(0x08FFFFFF), Color(0x14FFFFFF)], stops: [0.0, 0.3, 0.7, 1.0]),
  5. Color? borderColor = const Color(0x38FFFFFF),
  6. double borderWidth = 0.5,
  7. bool enableShadow = true,
  8. Color? shadowColor = const Color(0x20000000),
  9. double shadowBlur = 12.0,
  10. double shadowSpread = 0.0,
  11. bool specularHighlight = true,
  12. bool innerShadow = false,
  13. double saturationBoost = 1.15,
  14. double noiseOpacity = 0.02,
  15. LiquidGlassVariant variant = LiquidGlassVariant.clear,
})

Creates an iOS 26–style clear Liquid Glass effect.

Highly translucent, ideal for prioritizing the visibility of underlying content. Use this for elements that float above media backgrounds (photos, videos) to create a more immersive experience.

Implementation

const FloaticaGlassEffect.liquidGlassClear({
  this.blur = 18.0,
  this.opacity = 0.06,
  this.tintColor,
  this.gradient = const LinearGradient(
    begin: Alignment.topLeft,
    end: Alignment.bottomRight,
    colors: [
      Color(0x18FFFFFF),
      Color(0x0CFFFFFF),
      Color(0x08FFFFFF),
      Color(0x14FFFFFF),
    ],
    stops: [0.0, 0.3, 0.7, 1.0],
  ),
  this.borderColor = const Color(0x38FFFFFF),
  this.borderWidth = 0.5,
  this.enableShadow = true,
  this.shadowColor = const Color(0x20000000),
  this.shadowBlur = 12.0,
  this.shadowSpread = 0.0,
  this.specularHighlight = true,
  this.innerShadow = false,
  this.saturationBoost = 1.15,
  this.noiseOpacity = 0.02,
  this.variant = LiquidGlassVariant.clear,
});