Skip to content

Instantly share code, notes, and snippets.

View mddanishansari's full-sized avatar

MD Danish Ansari mddanishansari

View GitHub Profile
@Composable
fun ListWithJustColumn() {
Column {
(1..5).toList().forEach { number ->
var text by remember { mutableStateOf("$number: ") }
println(text) // This log is printed for all items even if it is changed for just one time
OutlinedTextField(value = text, onValueChange = { text = it })
}
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.w-100 {
width: 100% !important;