FloaticaGlassEffect.light constructor

const FloaticaGlassEffect.light({
  1. double blur = 15.0,
  2. double opacity = 0.15,
  3. Color? tintColor,
  4. Gradient? gradient = const LinearGradient(begin: Alignment.topLeft, end: Alignment.bottomRight, colors: [Color(0x40FFFFFF), Color(0x26FFFFFF), Color(0x40FFFFFF)]),
  5. Color? borderColor = const Color(0x40FFFFFF),
  6. double borderWidth = 1.0,
  7. bool enableShadow = true,
  8. Color? shadowColor = const Color(0x20000000),
  9. double shadowBlur = 10.0,
  10. double shadowSpread = 0.0,
  11. bool specularHighlight = false,
  12. bool innerShadow = false,
  13. double saturationBoost = 1.0,
  14. double noiseOpacity = 0.0,
  15. 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,
});