Mouse drag not working in listview.builder?

Viewed 499

I have the following code:

ListView.builder(
            padding: EdgeInsets.zero,
            physics: globalScrollPhysics,
            scrollDirection: Axis.horizontal,
            itemCount: this.results.length,
            itemBuilder: (context, index) {
              return SearchResultCard(
                  foodData: this.results[index],
                  constraints: this.constraints,
                  index: index);
            },
          ),

The globalScrollPhysics is just AlwaysScrollableScrollPhysics. The problem I'm facing is that I can't seem to drag the listview to scroll with my mouse. I can use a trackpad and scroll with 2-fingers but when I use a mouse, I can't drag it. What's causing the issue? The widget is at the top of a stack so there is nothing above it.

1 Answers
Related