-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
In Material 3, when setting appBarTheme.actionsIconTheme or appBarTheme.iconTheme overrides, the color values will be overridden by any iconButtonTheme also present in the theme.
This means that users cannot set different app-wide theme overrides for app bar leading and trailing IconButton widgets, which would be expected from the names of actionsIconTheme/iconTheme. While users can provide their own leading/trailing widgets, the app bar itself constructs menu, back and close IconButtons.
This is due to the app bar using IconButton widgets, which defer to Theme.iconButtonTheme for color properties in M3. I think the app bar IconButtons need to have a local override which prioritises appBarTheme icon theme values.
This only occurs in Material 3 (try commenting out useMaterial3 in example above).