Skip to content

Delsart/ComposeModalBottomSheet

Repository files navigation

ComposeModalBottomSheet

ModalBottomSheet for Compose

Record.mp4

Base Usage

BottomSheet(sheetContent = {/*TODO sheet content here */ }) {
    val bottomSheetState = LocalBottomSheetState.current
    val coroutineScope = rememberCoroutineScope()
    Button(onClick = {
        coroutineScope.launch {
            // show bottomSheet
            bottomSheetState.show()
        }
    }) {
        Text(text = "show")
    }
}

Import

Step 1. Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

Step 2. Add the dependency

dependencies {
	implementation 'com.github.Delsart:ComposeModalBottomSheet:v0.0.1'
}

About

ModalBottomSheet for Compose

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages