FloaticaGlassEffect.liquidGlassClear constructor
const
FloaticaGlassEffect.liquidGlassClear({
- double blur = 18.0,
- double opacity = 0.06,
- Color? tintColor,
- 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]),
- Color? borderColor = const Color(0x38FFFFFF),
- double borderWidth = 0.5,
- bool enableShadow = true,
- Color? shadowColor = const Color(0x20000000),
- double shadowBlur = 12.0,
- double shadowSpread = 0.0,
- bool specularHighlight = true,
- bool innerShadow = false,
- double saturationBoost = 1.15,
- double noiseOpacity = 0.02,
- 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,
});