我如何修复此错误(底部的 RenderFlex 溢出了 104 像素



在此处输入图像描述

这(在列表磁贴内尾随( 在颤振中

trailing: Column(
children: <Widget>[
new IconButton(icon: Icon(Icons.arrow_drop_up), onPressed: (){}),
Text("Hello"),
new IconButton(icon: Icon(Icons.arrow_drop_down), onPressed: (){}),

],
),
trailing: Column(
mainAxisAlignment: MainAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Expanded(
child: new IconButton(
padding: EdgeInsets.zero,
icon: Icon(Icons.arrow_drop_up), onPressed: (){}),
),
Expanded(child: Text("Hello")),
Expanded(child: new IconButton(icon: Icon(Icons.arrow_drop_down), onPressed: (){})),

],
),
trailing: FittedBox(
fit: BoxFit.fill,
child: Column(
children: <Widget>[
new IconButton(icon: Icon(Icons.arrow_drop_up, size: 50.0,), onPressed: (){}),
new Text("${cart_prod_qty}", style: TextStyle(fontSize: 25.0),),
new IconButton(icon: Icon(Icons.arrow_drop_down, size: 50.0,) , onPressed: (){}),
],
),
),

最新更新