Android gridview.extent不';不要摇摇晃晃地滚动

Android gridview.extent不';不要摇摇晃晃地滚动,android,ios,flutter,mobile-application,Android,Ios,Flutter,Mobile Application,我在gridview中输入了几张卡。但是滚动条不工作。屏幕底部有一个黄黑色条纹框,其中包含“底部溢出129像素”的信息 Widget build(BuildContext context) { double screenWidth = MediaQuery.of(context).size.width; double screenHeight = MediaQuery.of(context).size.height; return Column( crossAxisAlignment: Cr

我在gridview中输入了几张卡。但是滚动条不工作。屏幕底部有一个黄黑色条纹框,其中包含“底部溢出129像素”的信息

Widget build(BuildContext context) {
double screenWidth = MediaQuery.of(context).size.width;
double screenHeight = MediaQuery.of(context).size.height;
return Column(
  crossAxisAlignment: CrossAxisAlignment.stretch, 
  children: <Widget>[
    Padding(
      padding: EdgeInsets.only(top: 50.0),
      child : Chip(
        label : Text("Topics", style: TextStyle(color : Colors.white, fontSize: 25), textAlign: TextAlign.center,),
        avatar: CircleAvatar(
          child: Icon(Icons.clear_all, color: Colors.white,),
          backgroundColor: Colors.blue[800],
          ),
        backgroundColor: Colors.blue[800], 
        ),
      ),
      GridView.extent(
        padding: EdgeInsets.all(10.0),
        maxCrossAxisExtent: 200.0, 
        shrinkWrap: true,
        physics: ScrollPhysics(),
        primary: true,
        children: <Widget>[
          Card( 
            child : Container(
              constraints: new BoxConstraints.expand(height: 0.3*screenHeight, width: 0.395*screenWidth),
              alignment: Alignment.bottomCenter,
              decoration: BoxDecoration(
                image: DecorationImage(
                  image: AssetImage("background/music.jpg"),
                  fit: BoxFit.fitWidth
                ),
              ),
              child: Stack(children: <Widget>[
                Positioned(
                  left:0.0, bottom: 0.0,
                  child: Padding(
                    padding: EdgeInsets.only(left: 5.0, bottom: 5.0),
                    child: Text("#music", style: TextStyle(color: Colors.cyan[900] ,fontSize: 25.0, decorationStyle: TextDecorationStyle.wavy)),
                  )
                ),
                Positioned(
                  right:0.0, top: 0.0,
                  child: IconButton(icon: Icon(Icons.favorite_border), onPressed: (){int x =0;},),
              )
              ]
              )
            )
          ),
          Card( 
            child : Container(
              constraints: new BoxConstraints.expand(height: 0.3*screenHeight, width: 0.395*screenWidth),
              alignment: Alignment.bottomCenter,
              decoration: BoxDecoration(
                image: DecorationImage(
                  image: AssetImage("background/sports.jpg"),
                  fit: BoxFit.fitWidth
                ),
              ),
              child: Stack(children: <Widget>[
                Positioned(
                  left:0.0, bottom: 0.0,
                  child: Padding(
                    padding: EdgeInsets.only(left: 5.0, bottom: 5.0),
                    child: Text("#sports", style: TextStyle(color: Colors.cyan[900] ,fontSize: 25.0, decorationStyle: TextDecorationStyle.wavy)),
                  )
                ),
                Positioned(
                  right:0.0, top: 0.0,
                  child: IconButton(icon: Icon(Icons.favorite_border), onPressed: (){int x =0;},),
              )
              ]
              )
            )
          ),
          Card( 
            child : Container(
              constraints: new BoxConstraints.expand(height: 0.3*screenHeight, width: 0.395*screenWidth),
              alignment: Alignment.bottomCenter,
              decoration: BoxDecoration(
                image: DecorationImage(
                  image: AssetImage("background/business.jpg"),
                  fit: BoxFit.fitWidth
                ),
              ),
              child: Stack(children: <Widget>[
                Positioned(
                  left:0.0, bottom: 0.0,
                  child: Padding(
                    padding: EdgeInsets.only(left: 5.0, bottom: 5.0),
                    child: Text("#entrepreneurship", style: TextStyle(color: Colors.cyan[900] ,fontSize: 25.0, decorationStyle: TextDecorationStyle.wavy)),
                  )
                ),
                Positioned(
                  right:0.0, top: 0.0,
                  child: IconButton(icon: Icon(Icons.favorite_border), onPressed: (){int x =0;},),
              )
              ]
              )
            )
          ),
          Card( 
            child : Container(
              constraints: new BoxConstraints.expand(height: 0.3*screenHeight, width: 0.395*screenWidth),
              alignment: Alignment.bottomCenter,
              decoration: BoxDecoration(
                image: DecorationImage(
                  image: AssetImage("background/tech.jpg"),
                  fit: BoxFit.fitWidth
                ),
              ),
              child: Stack(children: <Widget>[
                Positioned(
                  left:0.0, bottom: 0.0,
                  child: Padding(
                    padding: EdgeInsets.only(left: 5.0, bottom: 5.0),
                    child: Text("#technology", style: TextStyle(color: Colors.cyan[900] ,fontSize: 25.0, decorationStyle: TextDecorationStyle.wavy)),
                  )
                ),
                Positioned(
                  right:0.0, top: 0.0,
                  child: IconButton(icon: Icon(Icons.favorite_border), onPressed: (){int x =0;},),
              )
              ]
              )
            )
          ),
          Card( 
            child : Container(
              constraints: new BoxConstraints.expand(height: 0.3*screenHeight, width: 0.395*screenWidth),
              alignment: Alignment.bottomCenter,
              decoration: BoxDecoration(
                image: DecorationImage(
                  image: AssetImage("background/health.png"),
                  fit: BoxFit.fitWidth
                ),
              ),
              child: Stack(children: <Widget>[
                Positioned(
                  left:0.0, bottom: 0.0,
                  child: Padding(
                    padding: EdgeInsets.only(left: 5.0, bottom: 5.0),
                    child: Text("#health", style: TextStyle(color: Colors.cyan[900] ,fontSize: 25.0, decorationStyle: TextDecorationStyle.wavy)),
                  )
                ),
                Positioned(
                  right:0.0, top: 0.0,
                  child: IconButton(icon: Icon(Icons.favorite_border), onPressed: (){int x =0;},),
              )
              ]
              )
            )
          ),
        ],
      )
  ],
);
小部件构建(构建上下文){
double screenWidth=MediaQuery.of(context).size.width;
double screenHeight=MediaQuery.of(context).size.height;
返回列(
crossAxisAlignment:crossAxisAlignment.stretch,
儿童:[
填充物(
填充:仅限边缘设置(顶部:50.0),
孩子:芯片(
标签:文本(“主题”,样式:TextStyle(颜色:Colors.white,fontSize:25),textAlign:textAlign.center,),
阿凡达:CircleAvatar(
子:图标(Icons.clear\u all,颜色:Colors.white,),
背景颜色:颜色。蓝色[800],
),
背景颜色:颜色。蓝色[800],
),
),
GridView.extent(
填充:所有边缘设置(10.0),
maxCrossAxisExtent:200.0,
收缩膜:对,
物理:物理(),
小学:对,
儿童:[
信用卡(
子:容器(
约束:新建框约束。展开(高度:0.3*屏幕高度,宽度:0.395*屏幕宽度),
对齐:对齐.bottomCenter,
装饰:盒子装饰(
图像:装饰图像(
图片:AssetImage(“background/music.jpg”),
适合:BoxFit.fitWidth
),
),
子:堆栈(子:[
定位(
左:0.0,下:0.0,
孩子:填充(
填充:仅限边缘设置(左侧:5.0,底部:5.0),
子项:文本(“音乐”,样式:TextStyle(颜色:Colors.cyan[900],fontSize:25.0,装饰样式:TextDecorationStyle.wavy)),
)
),
定位(
右:0.0,顶部:0.0,
子:图标按钮(图标:图标(Icons.favorite_border),按下:({intx=0;},),
)
]
)
)
),
信用卡(
子:容器(
约束:新建框约束。展开(高度:0.3*屏幕高度,宽度:0.395*屏幕宽度),
对齐:对齐.bottomCenter,
装饰:盒子装饰(
图像:装饰图像(
图片:AssetImage(“background/sports.jpg”),
适合:BoxFit.fitWidth
),
),
子:堆栈(子:[
定位(
左:0.0,下:0.0,
孩子:填充(
填充:仅限边缘设置(左侧:5.0,底部:5.0),
子项:文本(“运动”,样式:TextStyle(颜色:Colors.cyan[900],fontSize:25.0,装饰样式:TextDecorationStyle.wavy)),
)
),
定位(
右:0.0,顶部:0.0,
子:图标按钮(图标:图标(Icons.favorite_border),按下:({intx=0;},),
)
]
)
)
),
信用卡(
子:容器(
约束:新建框约束。展开(高度:0.3*屏幕高度,宽度:0.395*屏幕宽度),
对齐:对齐.bottomCenter,
装饰:盒子装饰(
图像:装饰图像(
图片:AssetImage(“background/business.jpg”),
适合:BoxFit.fitWidth
),
),
子:堆栈(子:[
定位(
左:0.0,下:0.0,
孩子:填充(
填充:仅限边缘设置(左侧:5.0,底部:5.0),
child:Text(“#创业”,样式:TextStyle(颜色:Colors.cyan[900],fontSize:25.0,decorationStyle:TextDecorationStyle.wavy)),
)
),
定位(
右:0.0,顶部:0.0,
子:图标按钮(图标:图标(Icons.favorite_border),按下:({intx=0;},),
)
]
)
)
),
信用卡(
子:容器(
约束:新建框约束。展开(高度:0.3*屏幕高度,宽度:0.395*屏幕宽度),
对齐:对齐.bottomCenter,
装饰:盒子装饰(
图像:装饰图像(
图片:AssetImage(“background/tech.jpg”),
适合:BoxFit.fitWidth
),
),
子:堆栈(子:[
定位(
左:0.0,下:0.0,
孩子:填充(
填充:仅限边缘设置(左侧:5.0,底部:5.0),
child:Text(“#technology”,style:TextStyle(颜色:Colors.cyan[900],fontSize:25.0,decorationStyle:TextDecorationStyle.wavy)),
)
),
定位(
右:0.0,顶部:0.0,
子:图标按钮(图标:图标(Icons.favorite_border),按下:({intx=0;},),
)
]
)
)
),
信用卡(
子:容器(
约束:新建框约束。展开(高度:0.3*屏幕高度,宽度:0.395*屏幕宽度),
对齐:对齐.bottomCenter,
装饰:盒子装饰(
图像:装饰图像(
图片:AssetImage(“background/health.png”),
适合:BoxFit.fitWidth
),
),
子:堆栈(子:[
定位(
左:0.0,下:0.0,
孩子:填充(
填充:仅限边缘设置(左侧:5.0,底部:5.0),
孩子