Does anyone knows why i’m getting this white scree...
# compose
j
Does anyone knows why i’m getting this white screen? — Using Scaffold at top level
k
I believe white is the default window background on light themes, this is not specifically Compose but Android that takes a bit of time to actually show your UI, during that fraction of time what you're seeing is the window background, change it to the background you're using in your Compose UI, or you can also use the SplashScreen API while your app is launching
j
I'm already using Splash screen api
k
Hmm okay then try setting the window background for your theme in XML
j
I set It in both light and dark, but nothing chances :(
c
Do you have a small minimal repro app? I'd love to dig into this. in general though, it seems like under your nav host you probably need to just set the color to something dark, or use a surface (which should use the appropriate theme color)
j
Its strange, but after some time, it disappear. Thank yuo all