would like to start TimerView() in onClick - TimerView is a text composable but the above mentioned error appears - both are marked composables
Composable
fun LosB(BLY: String, YArray: ArrayList<String> /* = java.util.ArrayList<kotlin.String> */) {
// val Tit = mutableStateOf("sdfsdf")
val context = LocalContext.current
Column(
horizontalAlignment = Alignment.CenterHorizontally,
modifier = Modifier.fillMaxWidth()
) {
OutlinedButton(
onClick = { TimerView()},
shape = CircleShape,
border = BorderStroke(1.dp, Color(0xFFADFF2F)),
colors = ButtonDefaults.buttonColors(
backgroundColor = Color(0xFF1C536F),
contentColor = Color.White
)
) {
Text(text = "OK", fontSize = 20.sp)
}
}
Any help? want to show a txt counter -
You need just make a mutableState like this
Home I help you