onBarTap property
Called when the user taps anywhere on the bar.
Fires via a translucent GestureDetector that wraps the entire bar, so internal tap handlers (tab selection, search toggle, indicator drag) all continue to work normally.
Primary use-case — tap-to-restore after scroll-to-hide:
GlassSearchableBottomBar(
onBarTap: () => setState(() => _barVisible = true),
...
)
Implementation
final VoidCallback? onBarTap;