Last active
December 12, 2022 14:02
-
-
Save MrNtlu/4fca8e424cdfcf242592f2a120e3ff7c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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