问题描述
我想问一下是否有人知道如何在#Flutter 中删除gridview 顶部的偏移量,看起来gridview 与父高度不匹配screenshot here
Widget _buildGridView({BuildContext context,List<TileWidget> children}) {
return Card(
margin: padding(context),borderOnForeground: true,color: Colors.black45,semanticContainer: true,clipBehavior: Clip.antiAlias,child: GridView.count(
shrinkWrap: true,physics: const NeverScrollableScrollPhysics(),crossAxisCount: sqrt(children.length).toInt(),children: children
),elevation: 5,shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10.0),),);
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)