Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
custom_button_state_holding
@Composable
fun CustomButton(stateHoldingClass: StateHoldingClass, onClick: () -> Unit) {
Button(onClick = onClick) {
Text(text = stateHoldingClass.counter.toString())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment