Ayz
Ayz

Reputation: 309

How to make a ListView move horizontally right or left when I am scrolling down

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

Answers (2)

Ahmed Elshazly
Ahmed Elshazly

Reputation: 56

Just add this attribute to the

ListView.builder(
scrollDirection: Axis.horizontal,
)

Upvotes: 0

Christian
Christian

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

Related Questions