我正在尝试放置一条水平线(当前为Divider
,但可以更改为CustomPaint
)作为Row
的背景。但是,无论子顺序如何,该行始终位于Row
的前面。我不知道怎么了。这是代码。
Stack(
children: <Widget>[
Positioned.fill(
child: const Divider(color: Colors.black),),Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,children: <Widget>[
Ink(
decoration: ShapeDecoration(
color: Colors.grey[350],shape: CircleBorder(),child: Padding(
padding: const EdgeInsets.all(4),child: Icon(Icons.arrow_forward,size: 32)
),Ink(
decoration: ShapeDecoration(
color: Colors.grey[350],child: Icon(Icons.location_on,child: Icon(Icons.flag,],
这是结果图像。