3

I have some kind of tab bar inside. I've implemented it with horizontal ListView. Whole page content is inside the vertical scroll view.

When clicking on the "Third tab" I need to scroll to it to show the full name. Problem is that ListView doesn't have scroll-to-item method. Some other possiblities:

  • Scrollable.ensureVisible(context) almost works but the problem is that it will scroll vertical list too which I don't want. And I don't see a way to prevent that.
  • Using scrollable_positioned_list package, will scroll as the item should be in the first position resulting in a huge overscroll bounce on iOS device. This method is missing something like ScrollPositionAlignmentPolicy.keepVisibleAtStart that ensureVisible has.
  • The items are not fixed width so that rules out several solutions.

enter image description here

2
  • Same situation here... Did you find any solution? Sep 28, 2022 at 1:15
  • Same question. For now, I can only with more calculation. Nov 22, 2022 at 12:59

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.