【发布时间】:2019-06-17 07:43:13
【问题描述】:
我试图在我的颤振项目中使用这样的圆形。我尝试在容器中使用边界半径。但它并没有像我预期的那样工作。
那么,我怎样才能有这样一个给定图片的形状?
我尝试过使用这样的容器。
Container(
height: 72,
width: 211,
decoration: BoxDecoration(
color: Colors.blue,
borderRadius: BorderRadius.only(
topRight: Radius.circular(50),
topLeft: Radius.circular(30))
),
)
【问题讨论】:
-
你有没有尝试过实现这个目标?
-
是的,我在容器中尝试了边界半径。但它并没有像我预期的那样工作
-
也发布您的代码?
-
你能分享更详细的图像,以便用户可以轻松识别你想要的视图形状吗?
-
它已更新。请检查@farhana
标签: user-interface flutter dart geometry shapes