- 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' }
...
}
}
...
- Sync the project
- Add dependency
dependencies {
implementation 'com.github.commandiron:outlined-drop-down-menu-compose:1.0'
}
val items by remember { mutableStateOf(listOf("item 1", "item 2", "item 3")) }
OutlinedDropDownMenu(
label = "label",
items = items,
unit = " unit",
onSelect = {
//SelectedItem
}
)