buildSliver method
Implementation
Widget buildSliver(BuildContext context) {
final theme = Theme.of(context);
final scaling = theme.scaling;
return SliverPersistentHeader(
pinned: pinned,
floating: floating,
delegate: _NavigationLabelDelegate(
maxExtent: 48 * scaling,
minExtent: 48 * scaling,
child: GestureDetector(
behavior: HitTestBehavior.translucent,
onTap: () {
Scrollable.ensureVisible(
context,
duration: kDefaultDuration,
curve: Curves.easeInOut,
);
},
child: Container(
alignment: alignment,
padding: padding ?? EdgeInsets.symmetric(horizontal: 16 * scaling),
// child: OverflowMarquee(child: child),
child: _NavigationChildOverflowHandle(
overflow: overflow,
child: child,
),
).semiBold().large(),
),
),
);
}