GlassIsolationScope constructor

const GlassIsolationScope({
  1. Key? key,
  2. bool isolated = true,
  3. GlassQuality? defaultQuality,
  4. required Widget child,
})

Creates a glass isolation scope.

When isolated is true (default), descendant glass widgets render with their own independent layer. When false, they participate in the nearest ancestor AdaptiveLiquidGlassLayer's grouped rendering.

defaultQuality provides a quality hint for descendants that don't specify an explicit quality. This is separate from isolated — a scope can be de-isolated (for grouping) while still providing a premium quality default.

Implementation

const GlassIsolationScope({
  super.key,
  this.isolated = true,
  this.defaultQuality,
  required super.child,
});