0

enter image description here

Hey Stackoverflow Community,

probably someone already answered this question, but i can't find a solution for my Problem so i decided to ask my question here hoping that someone can help me further.

As you can see in the image, i used a NestedScrollView. This Scrollview should have a SliverAppBar in the headerSliverBuilder and an Stack in the body of this view. Inside the body there should be a Listview.builder.

Inside this Listview are 5 Container. If i click on one of this container I want that the container scrolls in the middle of the device. The Probelm is that the offset just goes from 0 to 104 (this is the height of the Tabbar or something like this). If i print the position of the scrollController it shows the following: [_NestedScrollPosition#3bf02(outer, offset: 104.0, range: 0.0..104.0, viewport: 690.9)]

How can i tell my Scrollcontroller, that he should scroll to a position which is bigger than 104? Or how can i use the full viewport?

Can someone help me?

Thank you in advance =)

David
  • 1
  • 1
  • I found this: https://stackoverflow.com/questions/49889673/using-a-nestedscrollview-and-supplying-a-scrollcontroller-downstream-to-a-listvi/75474405#75474405. This is the same Problem and the Person who ask found a solution, but everything i tried out hasn't worked. Maybe someone can give me an Example how to implemant. Thx – David Feb 18 '23 at 13:37

0 Answers0