我正在尝试在屏幕的右上角和左下角绘制颤振的形状,但我无法完全做到



如何在颤振中实现这3种形状?

原谅我的画!:(在此处输入图像描述

试试这个:

return Scaffold(
body: Stack(
children: [
Container(
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height,
color: Colors.green,
),
Positioned(
right: -50,
top: -100,
child: Container(
width: 400.0,
height: 400.0,
decoration: new BoxDecoration(
color: Colors.orange,
shape: BoxShape.circle,
),
),
),
Positioned(
left: -50,
top: MediaQuery.of(context).size.height * 0.5,
child: Container(
width: 200.0,
height: 200.0,
decoration: new BoxDecoration(
color: Colors.orange,
shape: BoxShape.circle,
),
),
),
Positioned(
left: -50,
bottom: -100,
child: Container(
width: 400.0,
height: 400.0,
decoration: new BoxDecoration(
color: Colors.orange,
shape: BoxShape.circle,
),
),
),
],
),
);

若您有任何形状的SVG代码SVG到code,那么您可以将代码复制粘贴为custonPaint代码,这是实现这一点的最佳方法,我认为

最新更新