Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created August 12, 2022 01:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skydoves/391f34ba4da58c5060fbcf52b1bb8fe8 to your computer and use it in GitHub Desktop.
Save skydoves/391f34ba4da58c5060fbcf52b1bb8fe8 to your computer and use it in GitHub Desktop.
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