There are APIs in Jetpack Compose to be able to size things exactly as tall/wide as specific Insets, which is documented here.