【发布时间】:2021-03-23 15:05:04
【问题描述】:
请问我正在尝试在 Flutter 中使用自定义绘制绘制一个环,有没有关于如何实现它的想法?
当我试图像这样实现它但它不被接受,因为我需要阴影更专业:
Stack(
alignment: Alignment.center,
children: [
Container(
height: 180,
decoration: BoxDecoration(
color: Colors.white,
shape: BoxShape.circle,
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.2),
blurRadius: 2,
spreadRadius: 1,
offset: Offset(0, 2)),
],
),
),
Container(
height: 150,
decoration: BoxDecoration(
color: Colors.white,
shape: BoxShape.circle,
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.2),
blurRadius: 2,
spreadRadius: 1,
offset: Offset(0, 2)),
],
),
),
],
),
【问题讨论】:
-
可以和我们分享一下,你的结果图(结果图)你想要吗?
标签: flutter