Flutter AppBar 去掉底部阴影
appBar: AppBar(
backgroundColor: Color.fromRGBO(147, 147, 147, 1),
leading: IconButton(
icon: Icon(KaiTianIcons.turnleft,
color: Color.fromRGBO(179, 179, 179, 1), size: 26.0),
onPressed: () => Navigator.of(context).pop(),
),
title: TextField(
decoration: InputDecoration(
hintStyle: new TextStyle(
fontSize: ScreenUtil().setSp(32),
color: Color.fromRGBO(179, 179, 179, 1),
),
hintText: '输入关键字搜索', // 文字提示,类似placeholder
),
),
elevation: 0, //这个是去掉底部阴影的代码
),