Didier Villevalois
08/26/2025, 11:23 AMLocalWindowInfo.current.containerSize
is initially (0, 0). So I am forced to do
Window(...) { if (LocalWindowInfo.current.containerSize != IntSize(0, 0)) { App() } }
so that currentWindowAdaptiveInfo()
doesn't return a COMPACT
window class at first composition. Am I doing something wrong or is this expected?Alexander Maryanovsky
08/26/2025, 12:00 PMDidier Villevalois
08/26/2025, 12:06 PMrememberWindowState
with explicit window size, couldn't that first composition be made with the correct containerSize
even if the window is not shown?
Currently, my adaptive layout (navigation3) does funky initialization because the currentWindowAdaptiveInfo
reports a compact window size class. So I am forced to do the if (...)
and maybe I myself risk a flashing white background (though I don't observe it currently...)?Alexander Maryanovsky
08/26/2025, 12:07 PMDidier Villevalois
08/26/2025, 12:09 PMDidier Villevalois
08/26/2025, 1:35 PM