用title布局
return Scaffold(
backgroundColor: Colors.white,
appBar: AppBar(
backgroundColor: Colors.white,
elevation: 0,
titleSpacing: 0.0,//title widget两边不留间隙
title: Container(
color: Colors.red,
child: ListTile(
title: Text('左侧按钮自定义'),
)
),
actions: <Widget>[
FlatButton(onPressed: (){}, child: Icon(Icons.phone_in_talk))
],
),
);