build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Builds the SliverStickyHeader with a Glass-wrapped header that dynamically adjusts based on pin state and context translucency.

When the header is pinned, it applies a glass effect; otherwise, it remains transparent in translucent contexts. This method handles the sticky behavior and visual integration with the Arcane UI, returning a sliver widget suitable for CustomScrollView or similar sliver containers.

Implementation

@override
Widget build(BuildContext context) => SliverStickyHeader.builder(
      builder: (context, state) => Glass(
        ignoreContextSignals: true,
        disabled: !state.isPinned,
        child: header,
      ),
      sliver: sliver,
    );