A floating bubble built with Jetpack Compose. The motives behind creating it can be found in this post.
In the project's build.gradle file you need to add the maven central repository:
repositories {
mavenCentral()
}
In the module's build.gradle file you need to add the following dependency:
implementation("com.quadible:feather:1.0.0")
All we have to do is to create a Composable that will define the appearance of the bubble and provide
it as a content in the FloatingDraggableItem
Composable.
FloatingDraggableItem {
// Box defines the appearance of the bubble.
// We could use whatever Composable we want.
Box(
modifier = Modifier
.align(alignment = Alignment.BottomCenter)
.size(size = 64.dp)
.clip(shape = CircleShape),
)
}