Skip to content

jhw010406/3d-wheel-picker-compose

Repository files navigation

Introduce

Simple 3D Wheel Picker for Android Compose

Preview

How to include

Just merge WheelPickerView.kt to your project

Usage

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

License

Apache 2.0

Releases

No releases published

Packages

No packages published

Languages