I am trying to make nested Sliver headers sticky.
I am unable to make the 'today' header sticky under the 'bruh' header(which is sticky). make it feel like some collapsing headers.
can someone kindly give a hand
class ListExample extends StatelessWidget {
const ListExample({
Key key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return AppScaffold(
title: 'List Example',
slivers: [
SliverToBoxAdapter(child: SoldEntryPage(),),
_StickyHeaderDateSort(index: 34),
],
);
}
}
class _StickyHeaderDateSort extends StatelessWidget {
const _StickyHeaderDateSort({
Key key,
this.index,
}) : super(key: key);
final int index;
@override
Widget build(BuildContext context) {
return SliverStickyHeader(
header: HeaderDatePicker(), // this the 'bruh' sticky header
sliver: SliverToBoxAdapter(
child: ShrinkWrappingViewport( // THis me trying to nest silvers
offset: ViewportOffset.zero(),
slivers: [
_StickyHeaderList(index: 10),
_StickyHeaderList(index: 11),],
),
),
);
}
}
this is what most of that code is doing
