GlassScaffold constructor

const GlassScaffold({
  1. Key? key,
  2. required Widget body,
  3. Widget? appBar,
  4. Widget? bottomBar,
  5. Widget? background,
  6. Color? backgroundColor,
  7. LiquidGlassSettings? settings,
  8. GlassStatusBarStyle statusBarStyle = GlassStatusBarStyle.none,
  9. bool edgeToEdge = false,
  10. GlassThemeData? themeOverride,
  11. bool? enableBackgroundSampling,
  12. bool edgeFade = true,
  13. bool? topEdgeFade,
  14. bool? bottomEdgeFade,
  15. double topEdgeFadeExtent = 20.0,
  16. double bottomEdgeFadeExtent = 20.0,
  17. GlassScrollEdgeStyle edgeStyle = GlassScrollEdgeStyle.soft,
  18. bool extendBody = true,
  19. double appBarHeight = 44.0,
  20. double? bottomBarHeight,
  21. bool? resizeToAvoidBottomInset,
  22. List<Widget>? bodyOverlays,
  23. Widget? header,
  24. ScrollController? headerScrollController,
  25. double headerFadeDistance = 60.0,
  26. 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,
});