largeTitleController property

GlassLargeTitleController? largeTitleController
final

Optional controller that drives the inline title opacity.

When provided, the title widget is automatically wrapped in a ListenableBuilder that fades it in as GlassLargeTitle (the large title in the scroll view) fades out.

Screen readers find one title at a time: the large title until the bar title starts to fade in, halfway through the collapse, and the bar title from then on. Both are level-1 headings.

This replicates iOS 26's UINavigationBar.prefersLargeTitles collapse behaviour with zero boilerplate. See GlassLargeTitle and GlassLargeTitleController for full usage.

Implementation

final GlassLargeTitleController? largeTitleController;