问题描述
我试着在颤动网中设计了一些样本
有一个问题,我无法将RoundedRecangleBox应用于卡,因为它没有显示
查看上面的图像,其中主卡只有尖锐的边框。为什么?
在我的代码下面:
https://gist.github.com/RageshAntony/8ee93d338aec9e352f71c14f0c84f734
请帮助
推荐答案
将白色背景的Container
添加到Card
中,如下所示
Card(
shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(30.0)), // THIS NOT APPLYING !!!
elevation: 20,
child:Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(30.0),
),
child:Row(
----------------------
),
),