FloaticaGlassEffect.dark constructor

const FloaticaGlassEffect.dark({
  1. double blur = 20.0,
  2. double opacity = 0.3,
  3. Color? tintColor,
  4. Gradient? gradient = const LinearGradient(begin: Alignment.topLeft, end: Alignment.bottomRight, colors: [Color(0x4D2A2A2A), Color(0x661A1A1A), Color(0x802A2A2A)]),
  5. Color? borderColor = const Color(0x33FFFFFF),
  6. double borderWidth = 0.5,
  7. bool enableShadow = true,
  8. Color? shadowColor = const Color(0x40000000),
  9. double shadowBlur = 15.0,
  10. double shadowSpread = 2.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 dark glass effect preset with gradient.

Implementation

const FloaticaGlassEffect.dark({
  this.blur = 20.0,
  this.opacity = 0.3,
  this.tintColor,
  this.gradient = const LinearGradient(
    begin: Alignment.topLeft,
    end: Alignment.bottomRight,
    colors: [
      Color(0x4D2A2A2A),
      Color(0x661A1A1A),
      Color(0x802A2A2A),
    ],
  ),
  this.borderColor = const Color(0x33FFFFFF),
  this.borderWidth = 0.5,
  this.enableShadow = true,
  this.shadowColor = const Color(0x40000000),
  this.shadowBlur = 15.0,
  this.shadowSpread = 2.0,
  this.specularHighlight = false,
  this.innerShadow = false,
  this.saturationBoost = 1.0,
  this.noiseOpacity = 0.0,
  this.variant = LiquidGlassVariant.regular,
});