-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Haze effect does not work properly on desktop when navigating between pages #502
Comments
The code sample you provided is mostly useless, and you haven't provided a screen recording or screenshot showing the issue. There's not enough information here. |
https://drive.google.com/file/d/1lR-ONef4HMY-_oIcpa3UnaZdvSEbLAB_/view?usp=sharing |
Thanks for the video. I've got a speculative workaround in the PR above. I think this is more of a bug in CMP on Desktop. I think |
Hello sir, |
Information
Expected Behavior
I have made a localHazeState to pass throu all my classes because there is only a background is using . so every element above of it when use the hazeEffect must blur behind of itself which is background.
Actual Behavior
the odd thing that happens is that if u move the app window to a new position and change the page by navigator or sth else, components that has hazeEffect on their modifier does not properly update their behind image.
Steps to Reproduce the Problem
Please include reproducible code where possible
this is the haze provider :
val LocalHazeState = compositionLocalOf {
error("HazeState not provided!")
}
@composable
fun ProvideHazeState(
hazeState: HazeState,
content: @composable () -> Unit
) {
CompositionLocalProvider(LocalHazeState provides hazeState) {
content()
}
}
The text was updated successfully, but these errors were encountered: