在代码中尝试像下面这样的堆栈。
Stack(alignment: Alignment.topCenter, children: [
Container(
height: MediaQuery.of(context).size.height,
color: Colors.pinkAccent,
child: Align(
alignment: Alignment.topCenter,
child: Container(
height: MediaQuery.of(context).size.height / 2.5,
color: Colors.orange,
),
),
),
Container(
decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.only(topRight: Radius.circular(50), topLeft: Radius.circular(5))),
margin: EdgeInsets.only(top: MediaQuery.of(context).size.height / 3.5),
width: 100,
height: 100,
),
])