GlassSection constructor

const GlassSection({
  1. Key? key,
  2. required Widget sliver,
  3. required Widget header,
})

Creates a GlassSection with the required sliver content and header.

The sliver represents the scrollable body content, while the header is the sticky element that gains a glass effect when pinned. This constructor initializes the widget for use in sliver-based layouts, ensuring the header adapts to pinned states and translucency from the ArcaneTheme.

Implementation

const GlassSection({super.key, required this.sliver, required this.header});