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

Luca

10/30/2023, 4:35 AM
Anyone know why the material3 TopAppBar doesn’t constrain height? This wasn’t an issue with material2.
Copy code
TopAppBar(
    title = {
        Box(Modifier.fillMaxSize().aspectRatio(1f).background(Color.Red))
    },
)
I would think this should just display a small square with the height of the app bar