【发布时间】:2020-11-04 11:18:03
【问题描述】:
Please see image。我不太关心容器的孩子。只是装饰。我正在尝试实现黄色背景和右上角的复选图标。到目前为止,我只能制作容器并为其赋予边框颜色。
这是我目前为Container 编写的代码:
Container(
height: 50,
width: 90,
decoration: BoxDecoration(
border: Border.all(color:Colors.yelloAccent[100]),
borderRadius: BorderRadius.all(Radius.circular(5),
),
color: color,
),
child: Center(child: Text(text, style: TextStyle(fontSize: 12, color: textColor, fontWeight: FontWeight.w900))),
);
【问题讨论】:
标签: flutter colors containers border badge