我认为Column或GridView有固定的高度,将项添加到Column会导致溢出。我怎样才能解决这个问题?
The relevant error-causing widget was:
Column myApp/lib/pages/bottomNavigation/profile.page.dart:439:22
The overflowing RenderFlex has an orientation of Axis.vertical.
The edge of the RenderFlex that is overflowing has been marked in the
我试图在Card小部件的文本和图标的顶部和底部添加一些填充。我发现flutter对于容器来说是一种简单的方法,但是似乎找不到其他小部件的方法(除了将它们封装在容器中)。这是我到目前为止掌握的代码:
body: new Container(
padding: new EdgeInsets.all(10.0),
child: new Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget> [
new Card(
c