我想制作一个样式如下的容器: https ://i.stack.imgur.com/ZPS6H.png
不知道该怎么做,我试图只合并 SVG,但渲染矩形与显示 SVG 所需的时间不同。我试过 LinearGradient 但即使我定义了停止它看起来也不正确。
这是我现在拥有的:
Container(
width: width,
height: 0.7 * height,
child: Row(
children: [
Container(
height: 0.7 * height,
width: width * 0.35,
color: yellow,
child: CircularPhoto(),
),
Container(
width: width * 0.15,
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage('assets/divider@2x.png'),
fit: BoxFit.fill,
),
),
),
Container(
width: width * 0.50,
color: Colors.white,
child: BannerInfo(),
),
],
),
);