Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 1.03 KB

README.md

File metadata and controls

43 lines (32 loc) · 1.03 KB

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