颤动 – 如何更改appBar后退按钮颜色

颤动 – 如何更改appBar后退按钮颜色,第1张

概述我无法弄清楚如何将appBar的自动后退按钮更改为其他颜色.它在脚手架下,我试图研究它,但我无法绕过它. return Scaffold( appBar: AppBar( backgroundColor: Colors.white, title: Image.asset( 'images/.jpg', fit: B 我无法弄清楚如何将appbar的自动后退按钮更改为其他颜色.它在脚手架下,我试图研究它,但我无法绕过它.

return Scaffold(      appbar: Appbar(        backgroundcolor: colors.white,Title: Image.asset(          'images/.jpg',fit: BoxFit.fill,),centerTitle: true,
解决方法 您必须使用Appbar中的icontheme属性,如下所示:

appbar: Appbar(          icontheme: IconthemeData(            color: colors.black,//change your color here          ),Title: Text("Sample"),body: Text("Sample body"),);
总结

以上是内存溢出为你收集整理的颤动 – 如何更改appBar后退按钮颜色全部内容,希望文章能够帮你解决颤动 – 如何更改appBar后退按钮颜色所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1000536.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-21
下一篇 2022-05-21

发表评论

登录后才能评论

评论列表(0条)

保存