fun createListItem(itemIndex: Int) { Padding(left = 8.dp, right = 8.dp, top = 8.dp, bottom = 8.dp) { FlexRow(crossAxisAlignment = CrossAxisAlignment.Center) {
You can access to context with define ambientContext.
ambientContext
Example:
val context = ContextAmbient.current