为什么我的容器会缩小到他孩子的大小?顺便说一句,如果他是条状的,容器不会收缩
Container(
height: 100,
decoration: BoxDecoration(
color: Colors.blue[50],
shape: BoxShape.circle,
boxShadow: [
BoxShadow(
color: Colors.black,
blurRadius: 10.0,
offset: Offset(3.0, 10.0),
// spreadRadius: 2.0,
)
],
),
child: Icon(Icons.location_on,
color: Color(0XFF0D47A1), size: 60.0),
),
https://stackoverflow.com/questions/56330778
复制相似问题