最外层用一个渐变的背景,然后用padding: const EdgeInsets.all(1)就可以了
Container(
padding: const EdgeInsets.all(1),
decoration: BoxDecorationUtil()
.setColumnGradientBoxDecoration(
const Color(0x7F01FFF8),
CommonColors.getColor1E1F25,
0.0,
topLeft: 20.0,
topRight: 20.0),
child: Container())