LightweightLiquidGlass.inLayer constructor

const LightweightLiquidGlass.inLayer({
  1. required Widget child,
  2. required LiquidShape shape,
  3. double glowIntensity = 0.0,
  4. double densityFactor = 0.0,
  5. double indicatorWeight = 0.0,
  6. GlobalKey<State<StatefulWidget>>? backgroundKey,
  7. Key? key,
})

Creates a lightweight glass widget that inherits settings from the nearest ancestor LiquidGlassLayer.

Implementation

const LightweightLiquidGlass.inLayer({
  required this.child,
  required this.shape,
  this.glowIntensity = 0.0,
  this.densityFactor = 0.0,
  this.indicatorWeight = 0.0,
  this.backgroundKey,
  super.key,
}) : settings = null;