AppBar draws its defaults from theme.colorScheme#69251
AppBar draws its defaults from theme.colorScheme#69251HansMuller merged 6 commits intoflutter:masterfrom
Conversation
290bb1b to
bfeaa4c
Compare
darrenaustin
left a comment
There was a problem hiding this comment.
LGTM. Just a question about using the brightness property in the color calculations.
There was a problem hiding this comment.
Shouldn't these color calculations use the brightness property of the appBar itself if it has one?
There was a problem hiding this comment.
That's a good question. The existing AppBar/AppBarTheme brightness property is (and was) only used to set the SystemUiOverlayStyle. This is not correctly documented, I'll fix that.
In this case the brightness of theme's color scheme is used because we're choosing default colors that contrast with the theme's colors, which is also as things were.
There was a problem hiding this comment.
Do we need to have a foreground color set here, or does it not matter here because we set the color in the icon and text themes?
e44b057 to
9d00682
Compare
|
This PR depends on a companion internal "SCUBA" test update: cl/341439577 |
This reverts commit a8f9d4c.
Added AppBar.foreground and AppBarTheme.foreground color and changed the way that AppBar computes its default colors and styles. Now:
Both AppBarTheme and AppBar now document how the theme's brightness relates to the SystemUiOverlayStyle per #67497.
Fixes #67921.