我嘗試在 Flutter Web 中設計一些示例
有一個問題,我無法將 RoundedRectangleBorder 應用于卡片,因為它沒有顯示

請參閱上圖,其中主卡只有清晰的邊框。為什么 ?
在我的代碼下面:
https://gist.github.com/RageshAntony/8ee93d338aec9e352f71c14f0c84f734
請幫忙
uj5u.com熱心網友回復:
添加一個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(
----------------------
),
),
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/391671.html
