Reputation: 309
My question is:
How can I make a ListView that contains Categories move horizontally right or left depending on which Category I reach when I am scrolling down.
Upvotes: 0
Views: 461
Reputation: 56
Just add this attribute to the
ListView.builder(
scrollDirection: Axis.horizontal,
)
Upvotes: 0
Reputation: 1068
You could try to use a combination of https://pub.dev/packages/inview_notifier_list to check which section is in view and https://pub.dev/packages/scroll_to_index to scroll the first listview accordingly.
Upvotes: 1