GlassPage constructor

const GlassPage({
  1. Key? key,
  2. Widget? background,
  3. required Widget child,
  4. LiquidGlassSettings? settings,
  5. bool? enableBackgroundSampling,
  6. GlassStatusBarStyle statusBarStyle = GlassStatusBarStyle.none,
  7. bool edgeToEdge = false,
  8. GlassThemeData? themeOverride,
})

Creates a GlassPage.

background is rendered beneath child. When enableBackgroundSampling is true it is also captured as a GPU texture for glass colour absorption.

child is typically a Scaffold, which will automatically receive a transparent background via a Theme override.

Implementation

const GlassPage({
  super.key,
  this.background,
  required this.child,
  this.settings,
  this.enableBackgroundSampling,
  this.statusBarStyle = GlassStatusBarStyle.none,
  this.edgeToEdge = false,
  this.themeOverride,
});