Simple 3D Wheel Picker for Android Compose
Just merge WheelPickerView.kt to your project
fun WheelPickerDialog(
initIdx: Int = 0,
suffix: String = "",
onDismissRequest: () -> Unit,
onConfirm: (Any) -> Unit,
optionList: List<String>
)
- initIdx = set first element's index on the options list
- suffix = set element's suffix
- onDismissRequest = callback when dialog canceled
- onConfirm = callback when select any element on options list
- optionsList = the list what you want to show in dialog