Skip to content

Instantly share code, notes, and snippets.

@parthdesai1208
Last active March 4, 2022 06:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parthdesai1208/4f3490e9d42e9192ff1c71c9dc1a813d to your computer and use it in GitHub Desktop.
Save parthdesai1208/4f3490e9d42e9192ff1c71c9dc1a813d to your computer and use it in GitHub Desktop.
compose components
FloatingActionButton(onClick = { }, backgroundColor = MaterialTheme.colors.secondary) {
Icon(
painter = painterResource(id = R.drawable.ic_baseline_arrow_upward_24),
contentDescription = "Go Up"
)
}
ExtendedFloatingActionButton(
icon = {
Icon(
painter = painterResource(id = R.drawable.ic_baseline_arrow_upward_24),
contentDescription = "Go Up"
)
},
text = { Text(text = "Go Up") }, onClick = {}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment