AppBar(
backgroundColor: MyColor.themeColor,
title: Text(title,
style: TextStyle(color: MyColor.themeFontColor, fontSize: 18)),
elevation: 0,
centerTitle: true,
leadingWidth: 50,
automaticallyImplyLeading: true,
leading: InkWell(
splashColor: Colors.transparent, // 去除水波纹
highlightColor: Colors.transparent, // 去除高亮
onTap: () {
FlutterUtil.popFlutterPage("");
},
child: Padding(
padding: EdgeInsets.only(left: 15),
child: Image.asset("assets/img/toolbar_back.png"))));
Tips:【小程序云开发】中高级前端面试题库(源码:小程序中联系我哟)。
---------- 创作不易,感谢大家,请多多支持!