Skip to content

St4B/Feather

Repository files navigation

Feather

A floating bubble built with Jetpack Compose. The motives behind creating it can be found in this post.

Installation

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")

Usage

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),
    )
}

Preview

About

A floating bubble built with Jetpack Compose.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages