When nesting Griview components in the listview, do not forget to add height Container Griview outer oh
···
body: ListView(
children: [
// 导航条
Container(
height: 180, //new line
padding: EdgeInsets.only(top:10 ),
child: GridView.count(
crossAxisCount: 4,
mainAxisSpacing: 10,
…
···