A nice stop sign
inline val Int.dp: Dp get() = Dp(value = this.toFloat())
@Composable
fun MyScreenContent(names: List<String> = listOf("Android", "there")) {
Column {
for (name in names) {
Greeting(name = name)
Divider(color = Color.Black)
}
}
}
@Composable
fun Counter() {

val count = remember { mutableStateOf(0) }

Button(onClick = { count.value++ }) {
Text("I've been clicked ${count.value} times")
}
}

Android Developer @Teckro.com