flutter_sticky_headers
flutter_sticky_headers copied to clipboard
How to know we scroll to header?
I want to know index of header.
Hello Did you find any solution? @taipower
ListView.builder(
itemCount: 3,
itemBuilder: (context, index) {
return StickyHeaderBuilder(
builder: (context, stuckAmount) {
stuckAmount = 1.0 - stuckAmount.clamp(0.0, 1.0);
if(stuckAmount == 1) print('$index is actived');
return SizedBox();
},
content: Text('$index'),);
});