title: Filling remaining space with Spacer on Jetpack Compose
body: <p>I'm thinking I might be missing something, is there a way to achieve &quot;fill the rest of the space&quot; in Compose Beta01 without the extra <code>Box</code> element wrapping the spacer? <code>Spacer</code> has no weight modifier, unfortunately.</p>
  <pre><code>Column(
      modifier = Modifier
          .height(120.dp)
          .fillMaxWidth()
  ) {
      Text(
          text = &quot;A&quot;
      )
      Box(
          modifier = Modifier
              .weight(1f)
      ) {
          Spacer(
              Modifier
                  .fillMaxHeight()
          )
      }
      Text(
          text = &quot;B&quot;
      )
  }
  </code></pre>
  <p>Edit:</p>
  <p>The extra box is not necessary at all, I was just misusing the modifier system. As a side note, the selected answer is probably another good way of achieving this.</p>