Skip to content

Instantly share code, notes, and snippets.

@MrNtlu
Last active December 12, 2022 14:02
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 MrNtlu/4fca8e424cdfcf242592f2a120e3ff7c to your computer and use it in GitHub Desktop.
Save MrNtlu/4fca8e424cdfcf242592f2a120e3ff7c to your computer and use it in GitHub Desktop.
Column(
horizontalAlignment = Alignment.End,
verticalArrangement = Arrangement.Center,
) {
SmallFloatingActionButton(
onClick = { sharedViewModel.smallFabOnClick.value.invoke() },
containerColor = colors.secondaryVariant,
shape = RoundedCornerShape(12.dp),
) {
Icon(
imageVector = Icons.Rounded.MyLocation,
contentDescription = "Location FAB",
tint = Color.White,
)
}
Spacer(modifier = Modifier.height(8.dp))
ExtendedFloatingActionButton(
text = {
Text(text = "Navigate", color = Color.White)
},
icon = {
Icon(
imageVector = Icons.Rounded.NearMe,
contentDescription = "Navigate FAB",
tint = Color.White,
)
},
onClick = { sharedViewModel.fabOnClick.value.invoke() },
expanded = sharedViewModel.expandedFab.value,
containerColor = colors.secondaryVariant,
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment