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
AppBar
Colors.amber
Easy and efficient and, less code method. Use light theme with desired color.
theme: ThemeData.light().copyWith( accentColor: Colors.amber, primaryColor: Colors.amber, ),