0

How to make able to scroll listview inside SingleChildScrollView?

That's right, normally the list view scrolls even if the parent is a SingleChildScrollView.

But my case is special because I used

NotificationListener<ScrollNotification>(
      onNotification: (ScrollNotification notification) {
        if (notification is UserScrollNotification) {
          if (notification.direction == ScrollDirection.forward) {
                //trigger doing some event ...
                ...changing screen because of this event

So my Listview scrolling is absolutely doing nothing and changing the screen because of the parent event.

child: ListView.builder( ... // when scroll it doesn`t scroll and change screen because of parent

Can anyone solve this?

dontknowhy
  • 2,480
  • 2
  • 23
  • 67

1 Answers1

0

I think you have not provided the physics property for the list view: Use -> physics:AlwaysScrollableScrollPhysics() for the listview to make it scrollable.

Jeremy Caney
  • 7,102
  • 69
  • 48
  • 77
akdev
  • 54
  • 5