title: How do we get the position/size of a Composable in a screen?
body: <p>In Compose, how do we get the position or size of a Composable in a screen ? For example, I'm trying to focus the map camera between specific bounds and adding padding. Here I need to get the padding corresponding to the pager top position and TopBar bottom position.</p>
  <p><a href="https://i.stack.imgur.com/MWlaK.png" rel="noreferrer"><img src="https://i.stack.imgur.com/MWlaK.png" alt="enter image description here" /></a></p>
  <p>Currently the code of this screen is the following:</p>
  <pre class="lang-kotlin prettyprint-override"><code>BoxWithConstraints {
          MapViewWithMarkers(...)
          TopAppBar(
              modifier = Modifier
                  .fillMaxWidth()
                  .statusBarsPadding(),
              backgroundColor = Color.Transparent,
              elevation = 0.dp,
          )
          HorizontalPager(
              state = pagerState,
              modifier = Modifier
                  .align(Alignment.BottomCenter)
                  .fillMaxWidth()
                  .navigationBarsPadding()
                  .padding(bottom = 32.dp),
              itemSpacing = 8.dp,
          ) { page -&gt;
              val hikeOnMapCard = hikeMarkerList[page]
              HikeOnMapCard(hikeOnMapCard) {
                  viewModel.hikeOnMapCardClicked(hikeOnMapCard.id)
              }
          }
      }
  </code></pre>
  <p>I would like to forward to the MapViewWithMarkers Composable the padding corresponding to the TopAppBar size and Pager size on this screen</p>
  <p>Thanks !</p>