title: Resizeable BasicTextField in Jetpack Compose
body: <p>Is there a way to produce a resizeable BasicTextField in Jetpack Compose, so that its width would wrap text size when a user types in or deletes characters? They've solved a similar problem for flutter, but I didn't find out how to solve this for Compose.
  <a href="https://stackoverflow.com/questions/55505327/flutter-how-to-make-textfield-width-fit-its-text-wrap-content/64380602#64380602">Flutter - how to make TextField width fit its text (&quot;wrap content&quot;)</a></p>
  <pre class="lang-kotlin prettyprint-override"><code>var text: String by rememberSaveable { mutableStateOf(&quot;&quot;) }
  BasicTextField(
     value = text,
     onValueChange = {
         text = it
     },
     modifier = Modifier.wrapContentWidth()
  )
  </code></pre>
  <p>unfortunately, <code>wrapContentWidth()</code> doesn't work here.</p>