GlassPage constructor
const
GlassPage({
- Key? key,
- Widget? background,
- required Widget child,
- LiquidGlassSettings? settings,
- bool? enableBackgroundSampling,
- GlassStatusBarStyle statusBarStyle = GlassStatusBarStyle.none,
- bool edgeToEdge = false,
- 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,
});