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