FloaticaGlassEffect.light constructor
const
FloaticaGlassEffect.light({
- double blur = 15.0,
- double opacity = 0.15,
- Color? tintColor,
- Gradient? gradient = const LinearGradient(begin: Alignment.topLeft, end: Alignment.bottomRight, colors: [Color(0x40FFFFFF), Color(0x26FFFFFF), Color(0x40FFFFFF)]),
- Color? borderColor = const Color(0x40FFFFFF),
- double borderWidth = 1.0,
- bool enableShadow = true,
- Color? shadowColor = const Color(0x20000000),
- double shadowBlur = 10.0,
- double shadowSpread = 0.0,
- bool specularHighlight = false,
- bool innerShadow = false,
- double saturationBoost = 1.0,
- double noiseOpacity = 0.0,
- LiquidGlassVariant variant = LiquidGlassVariant.regular,
Creates a light glass effect preset with gradient.
Implementation
const FloaticaGlassEffect.light({
this.blur = 15.0,
this.opacity = 0.15,
this.tintColor,
this.gradient = const LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
Color(0x40FFFFFF),
Color(0x26FFFFFF),
Color(0x40FFFFFF),
],
),
this.borderColor = const Color(0x40FFFFFF),
this.borderWidth = 1.0,
this.enableShadow = true,
this.shadowColor = const Color(0x20000000),
this.shadowBlur = 10.0,
this.shadowSpread = 0.0,
this.specularHighlight = false,
this.innerShadow = false,
this.saturationBoost = 1.0,
this.noiseOpacity = 0.0,
this.variant = LiquidGlassVariant.regular,
});