Add Wheel Date - Time Picker in Android Jetpack Compose.
Picker | Usage |
---|---|
WheelDateTimePicker { snappedDateTime -> } |
|
WheelDatePicker { snappedDate -> } |
|
WheelTimePicker { snappedTime -> } |
|
WheelTimePicker(timeFormat = TimeFormat.AM_PM) { snappedTime -> } |
- 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:WheelPickerCompose:1.1.10'
}
- < API 26 (optional)
compileOptions {
coreLibraryDesugaringEnabled true
//
}
//
dependencies {
//
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.1.6"
}