How to change text color of AppBar, icon color of FAB universally using theme?

后端 未结 9 1587
渐次进展
渐次进展 2020-12-14 13:50

I am able to set the background color of AppBar to Colors.amber. This automatically sets the text color to Black. I am aware of the accessibility i

9条回答
  •  清歌不尽
    2020-12-14 14:34

    Easy and efficient and, less code method. Use light theme with desired color.

    theme: ThemeData.light().copyWith(
        accentColor: Colors.amber,
        primaryColor: Colors.amber,
    ),
    

提交回复
热议问题