https://kotlinlang.org logo
#compose
Title
# compose
a

Abhishek Dewan

06/08/2022, 6:06 AM
Hi was playing around with compose navigation when I noticed that when the screen animates I see a white background appear before the actual screen. In the video recording I have slowed the animation to make it more prominent. My screens are just a scaffold with a text field in it. I am running 1.2.0-beta02 for compose and using material3 alpha, although saw it with material compose also. Does anyone know what that white screen is and if it's just something that should be filed ? you can find a sample of the code here https://github.com/abhishekdewan101/ListMaker
z

Zoltan Demant

06/08/2022, 6:10 AM
When I ran into this, it was due to the background color (inherited by my theme) being white underneath any composables.
1
a

Abhishek Dewan

06/25/2022, 5:25 AM
@Zoltan Demant would you know how one fixes it? How did you manage to fix it?
Sorry solved it. The root component needs to be wrapped inside a scaffold 🙂
3 Views