📜  flutter sliverappbar 更改颜色图标 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:26.002000             🧑  作者: Mango

代码示例1
SliverAppBar(
      backgroundColor: Colors.white,
      expandedHeight: 250,
      floating: false,
      pinned: true,
      iconTheme: const IconThemeData(color: Colors.blueAccent), //<----
      flexibleSpace: FlexibleSpaceBar(
        centerTitle: true,
        title: Container(
          alignment: Alignment.bottomCenter,
          width: double.infinity,
          height: double.infinity,
          child: const PhotoAvatarBecary(),
        ),
      ),
    );