Flutter AppBar 去掉底部阴影

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,  //这个是去掉底部阴影的代码
        ),

猜你喜欢

转载自blog.csdn.net/m0_43413873/article/details/108324086