appBarBackground property

Color? appBarBackground
final

Background theme color for the AppBar.

This AppBar theme color cannot be controlled separately with only standard ThemeData.from a ColorScheme. FlexColorScheme enables you to specify an AppBar theme color that is independent of the primary color in light theme and in dark mode of the dark theme's dark surface color.

When you use it, the correct text and icon contrast color is computed and set automatically based on provided color.

This AppBar color will also override any scheme color based selection in active used sub-themes if you have selected one for the AppBar there.

Implementation

final Color? appBarBackground;