Skip to content

commandiron/OutlinedDropDownMenuComposeLibrary

Repository files navigation

OutlinedDropDownMenuComposeLibrary

How it looks

Setup

  1. Open the file settings.gradle (it looks like that)
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        // add jitpack here 👇🏽
        maven { url 'https://jitpack.io' }
       ...
    }
} 
...
  1. Sync the project
  2. Add dependency
dependencies {
        implementation 'com.github.commandiron:outlined-drop-down-menu-compose:1.0'
}

Usage

val items by remember { mutableStateOf(listOf("item 1", "item 2", "item 3")) }

OutlinedDropDownMenu(
    label = "label",
    items = items,
    unit = " unit",
    onSelect = {
        //SelectedItem
    }
)

About

Add Outlined Drop-down Menu in Android Compose

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages