众所周知,fluuter里面的appbar 包含title, leading,action, bottom
如果我想在appbar里面自定一些内容,他会默认继承appbar的高度,且位置也没法自定义,如下图
这个时候我该怎么办?
在appbar里面将下面的内容填进去
title: Container(
width: 335,
height: 80,
// color: Colors.amber,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Container(
width: 100,
height: 80,
// color: Colors.pink,
padding: const EdgeInsets.fromLTRB(0, 25, 0, 0),
child: const Text("咨询"),
),
const SizedBox(
width: 100,
height: 80,
// color: Colors.pink,
)
],
),
)