GlassScaffold constructor
const
GlassScaffold({
- Key? key,
- required Widget body,
- Widget? appBar,
- Widget? bottomBar,
- Widget? background,
- Color? backgroundColor,
- LiquidGlassSettings? settings,
- GlassStatusBarStyle statusBarStyle = GlassStatusBarStyle.none,
- bool edgeToEdge = false,
- GlassThemeData? themeOverride,
- bool? enableBackgroundSampling,
- bool edgeFade = true,
- bool? topEdgeFade,
- bool? bottomEdgeFade,
- double topEdgeFadeExtent = 20.0,
- double bottomEdgeFadeExtent = 20.0,
- GlassScrollEdgeStyle edgeStyle = GlassScrollEdgeStyle.soft,
- bool extendBody = true,
- double appBarHeight = 44.0,
- double? bottomBarHeight,
- bool? resizeToAvoidBottomInset,
- List<
Widget> ? bodyOverlays, - Widget? header,
- ScrollController? headerScrollController,
- double headerFadeDistance = 60.0,
- bool contentAwareBrightness = false,
Creates a glass scaffold with automatic z-ordering, edge fading, and glass layer setup.
Implementation
const GlassScaffold({
super.key,
required this.body,
this.appBar,
this.bottomBar,
this.background,
this.backgroundColor,
this.settings,
this.statusBarStyle = GlassStatusBarStyle.none,
this.edgeToEdge = false,
this.themeOverride,
this.enableBackgroundSampling,
this.edgeFade = true,
this.topEdgeFade,
this.bottomEdgeFade,
this.topEdgeFadeExtent = 20.0,
this.bottomEdgeFadeExtent = 20.0,
this.edgeStyle = GlassScrollEdgeStyle.soft,
this.extendBody = true,
this.appBarHeight = 44.0,
this.bottomBarHeight,
this.resizeToAvoidBottomInset,
this.bodyOverlays,
this.header,
this.headerScrollController,
this.headerFadeDistance = 60.0,
this.contentAwareBrightness = false,
});