andbapps
07/01/2021, 5:08 AM@Composable
fun ModiferTest() {
Box(Modifier.background(Color.Blue).padding(16.dp).background(Color.Red).padding(8.dp).background(Color.Green)) {
Text("Modifier Test")
}
}
As you can see in the images, the function works correctly on Compose for Desktop, but on Compose for Web it discards all but the innermost modifiers (due to the way that modifiers currently work on web). This breaks the idea that each modifier doesn't need to have knowledge of the inner content/modifiers, which seems like an important aspect of the Compose UI system. Obviously multiplatform widgets are still experimental, but I wanted to know if something is planned to address this, since it seems like a somewhat core issue[JB] Shagen
07/01/2021, 10:42 AMspierce7
07/01/2021, 2:02 PM[JB] Shagen
07/01/2021, 2:03 PM