It is forbidden to scroll the scroll event of the component and to disable scrolling

Time:2020-12-17

Problems encountered:The rebound (bottoming) of listview on the outermost layer of the home page conflicts with the rebound (bottoming) of the GridView component of the commodity classification inside, which leads to drop-down refresh and pull-up loading bugs

solve the problem:Configure the physics property to: neverscrollablescrollphysics ()

class Nav extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return GridView.count(
      physics: NeverScrollableScrollPhysics(),
      crossAxisCount: 5,
      children: <Widget>[
        //Sub project content
      ],
    );
  }
}

In this way, GridView can’t scroll. The effect is similar to the following:

Wrap(
    alignment: WrapAlignment.center,
    crossAxisAlignment: WrapCrossAlignment.center,
    spacing: 20,
    Children: XXX // sub project content
),