颤动 – 如何更改appBar后退按钮颜色
发布时间:2020-12-14 14:49:41 所属栏目:百科 来源:网络整理
导读:我无法弄清楚如何将appBar的自动后退按钮更改为其他颜色.它在脚手架下,我试图研究它,但我无法绕过它. return Scaffold( appBar: AppBar( backgroundColor: Colors.white,title: Image.asset( 'images/.jpg',fit: BoxFit.fill,),centerTitle: true, 解决方法
我无法弄清楚如何将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"),); (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |