天天看點

Flutter 去掉AppBar點選水波紋效果和出現的灰色背景

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:【小程式雲開發】中進階前端面試題庫(源碼:小程式中聯系我喲)。

---------- 創作不易,感謝大家,請多多支援!

Flutter 去掉AppBar點選水波紋效果和出現的灰色背景

繼續閱讀