Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
Issue: TopAppBar Color Transition Bug When Switching Themes
Description
When switching between light and dark themes,
TopAppBar
transitions its color with an unnecessary animation, even ifcontainerColor
andscrolledContainerColor
are set to the same color.This creates an inconsistent UI experience, as all other UI elements update instantly when the theme changes, except for
TopAppBar
, which has a delayed transition.Expected Behavior
If
containerColor
andscrolledContainerColor
are identical,TopAppBar
should update its color instantly when switching themes, without an animation.Observed Behavior
TopAppBar
still animates its color change.TopAppBar
source:Since
colorTransitionFraction
animates between0
and1
, the app bar's background transitions unnecessarily, even when no actual color change is needed.Steps to Reproduce
TopAppBar
withcontainerColor
andscrolledContainerColor
set to the same color fromMaterialTheme.colorScheme.primary
.TopAppBar
fades its color instead of updating instantly, unlike the rest of the UI.Environment