You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Material 3 is enabled on Android, toggling a CheckBox or Switch that is inside a ScrollView causes the AppBarLayout surface color to flicker. The flicker is most visible after scrolling down — the AppBar briefly flashes between its lifted (scrolled) and non-lifted states on every toggle.
Expected Behavior
The AppBar should remain in its lifted state without any visual change when toggling controls.
Actual Behavior
The AppBar flickers — it briefly flashes to the non-lifted surface color and back on every CheckBox/Switch state change. The flicker is caused by the state-change animation triggering a layout pass, which causes AppBarLayout to re-evaluate its shouldLift() check.
AppBar_flicker.mov
Steps to reproduce
Create a page with a NavigationPage or Shell containing a ScrollView
Place several CheckBox or Switch controls inside the ScrollView
Ensure Material 3 is enabled.
Scroll the page down so the AppBar enters its "lifted" state (showing scrolledContainerColor)
Toggle any CheckBox or Switch. See the Appbar is flickering
When Material 3 is enabled on Android, toggling a CheckBox or Switch that is inside a ScrollView causes the AppBarLayout surface color to flicker. The flicker is most visible after scrolling down — the AppBar briefly flashes between its lifted (scrolled) and non-lifted states on every toggle.
Expected Behavior
The AppBar should remain in its lifted state without any visual change when toggling controls.
Actual Behavior
The AppBar flickers — it briefly flashes to the non-lifted surface color and back on every CheckBox/Switch state change. The flicker is caused by the state-change animation triggering a layout pass, which causes AppBarLayout to re-evaluate its shouldLift() check.
AppBar_flicker.mov
Steps to reproduce
AppBarFlickerRepo.zip