扑克:卡片的圆角长方形边框在扑翼网中不工作吗?

人气:1,162 发布:2022-10-16 标签: flutter flutter-web dart flutter-layout card

问题描述

我试着在颤动网中设计了一些样本

有一个问题,我无法将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(
       ----------------------
       ),
),

653