You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Flutter AppBar图标显示为圆形色块的问题求助

Flutter AppBar图标显示为圆形色块的问题求助

大家好,我在开发Flutter应用时遇到了个头疼的问题:每次添加AppBar后,leading和actions区域的图标都会变成被应用主色填充的圆形色块,我实在摸不着头脑,想请教下各位大佬这是怎么回事。

先给大家看一下实际的异常效果:
AppBar图标显示为圆形色块的截图

这是我当前写的AppBar相关代码:

Scaffold(
  appBar: AppBar(
    title: Text(widget.budgetName),
    automaticallyImplyLeading: true,
    actions: [
      IconButton(onPressed: (){}, icon:Icon(EvaIcons.edit2))
    ],
  ),
  backgroundColor: kDarkScaffold,
)

有没有朋友遇到过类似的情况,或者能帮我分析下问题出在哪呀,万分感谢!

备注:内容来源于stack exchange,提问作者Black Eyed Beans

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.16 07:37:58