title: How to get Context in Jetpack Compose
body: <pre><code>fun createListItem(itemIndex: Int) {
      Padding(left = 8.dp, right = 8.dp, top = 8.dp, bottom = 8.dp) {
          FlexRow(crossAxisAlignment = CrossAxisAlignment.Center) {
              expanded(1.0f) {
                  Text(&quot;Item $itemIndex&quot;)
              }
              inflexible {
                  Button(
                      &quot;Button $itemIndex&quot;,
                      style = ContainedButtonStyle(),
                      onClick = {
                          Toast.makeText(
                              this@MainActivity,
                              &quot;Item name $itemIndex&quot;,
                              Toast.LENGTH_SHORT
                          ).show()
                      })
              }
          }
      }
  }
  </code></pre>
  <p>I try to make Toast in a normal way. but I got the error I tried a lot of multiples source but failed.</p>