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?
I think you have not provided the physics property for the list view: Use -> physics:AlwaysScrollableScrollPhysics()
for the listview to make it scrollable.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.