Skip to content

Instantly share code, notes, and snippets.

@gabriel-TheCode
Created February 3, 2021 12:57
Show Gist options
  • Select an option

  • Save gabriel-TheCode/e26c92c05408ef22700c84350bab3766 to your computer and use it in GitHub Desktop.

Select an option

Save gabriel-TheCode/e26c92c05408ef22700c84350bab3766 to your computer and use it in GitHub Desktop.
Custom Icon Button with Jetpack Compose
@Composable
fun IconButton(onClick: () -> Unit) {
Button(onClick = { onClick() }){
Icon(asset = Icons.Filled.Refresh, modifier = Modifier.padding(8.dp))
Text(text = stringResource(id = R.string.resend_code))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment