enighma
09/27/2022, 7:02 PMjava.awt.IllegalComponentStateException: The window is showing on screen
I'm guessing that compose tries to create a new window and AWT says it's already there, but all I want is the data to be passed.Dominaezzz
09/27/2022, 7:32 PMenighma
09/27/2022, 8:28 PMDominaezzz
09/27/2022, 8:30 PMenighma
09/27/2022, 9:11 PMstate = WindowState(size = DpSize(1000.dp, 1000.dp)),
If I pass this to the window function it breaks, but if I omit it, it works.enighma
09/27/2022, 9:11 PMrememberWindowState
Is probably the solution hereenighma
09/27/2022, 9:12 PMenighma
09/27/2022, 9:22 PMDominaezzz
09/27/2022, 9:36 PMapplication applier would be for creating windows and the Window applier would be for creating UI elements.Dominaezzz
09/27/2022, 9:36 PMenighma
09/27/2022, 9:43 PMapplication and Window are.
application does not create any windows, that is what Window does.
Not being able to nest composables is kind of against the whole point of compose IMHO.Dragos Rachieru
10/03/2022, 4:32 PMWindow should be changed from a Composable to a non Compose method, like we do with LazyColumn and item
But then it will be harder to have states and listen to them inside the application method.
I think Window shouldn't be nested, but it's hard to stop you from using it inside another Composableenighma
10/03/2022, 6:09 PMDragos Rachieru
10/03/2022, 6:52 PMDominaezzz
10/03/2022, 6:53 PMDragos Rachieru
10/03/2022, 6:53 PMenighma
10/03/2022, 7:10 PMenighma
10/03/2022, 7:18 PMDominaezzz
10/03/2022, 7:27 PMenighma
10/03/2022, 7:31 PMenighma
10/03/2022, 7:33 PMDominaezzz
10/03/2022, 7:46 PM