|
@@ -54,9 +54,9 @@ import kotlin.math.absoluteValue
|
|
|
|
|
|
@Composable
|
|
@Composable
|
|
fun WheelNumberPicker(
|
|
fun WheelNumberPicker(
|
|
|
|
+ items: List<Number>,
|
|
modifier: Modifier = Modifier,
|
|
modifier: Modifier = Modifier,
|
|
startIndex: Int = 0,
|
|
startIndex: Int = 0,
|
|
- items: List<Number>,
|
|
|
|
size: DpSize = DpSize(128.dp, 128.dp),
|
|
size: DpSize = DpSize(128.dp, 128.dp),
|
|
onSelectionChanged: (index: Int) -> Unit = {},
|
|
onSelectionChanged: (index: Int) -> Unit = {},
|
|
backgroundContent: (@Composable (size: DpSize) -> Unit)? = {
|
|
backgroundContent: (@Composable (size: DpSize) -> Unit)? = {
|
|
@@ -78,9 +78,9 @@ fun WheelNumberPicker(
|
|
|
|
|
|
@Composable
|
|
@Composable
|
|
fun WheelTextPicker(
|
|
fun WheelTextPicker(
|
|
|
|
+ items: List<String>,
|
|
modifier: Modifier = Modifier,
|
|
modifier: Modifier = Modifier,
|
|
startIndex: Int = 0,
|
|
startIndex: Int = 0,
|
|
- items: List<String>,
|
|
|
|
size: DpSize = DpSize(128.dp, 128.dp),
|
|
size: DpSize = DpSize(128.dp, 128.dp),
|
|
onSelectionChanged: (index: Int) -> Unit = {},
|
|
onSelectionChanged: (index: Int) -> Unit = {},
|
|
backgroundContent: (@Composable (size: DpSize) -> Unit)? = {
|
|
backgroundContent: (@Composable (size: DpSize) -> Unit)? = {
|
|
@@ -101,9 +101,9 @@ fun WheelTextPicker(
|
|
|
|
|
|
@Composable
|
|
@Composable
|
|
private fun <T> WheelPicker(
|
|
private fun <T> WheelPicker(
|
|
|
|
+ items: List<T>,
|
|
modifier: Modifier = Modifier,
|
|
modifier: Modifier = Modifier,
|
|
startIndex: Int = 0,
|
|
startIndex: Int = 0,
|
|
- items: List<T>,
|
|
|
|
size: DpSize = DpSize(128.dp, 128.dp),
|
|
size: DpSize = DpSize(128.dp, 128.dp),
|
|
onSelectionChanged: (index: Int) -> Unit = {},
|
|
onSelectionChanged: (index: Int) -> Unit = {},
|
|
manualInputType: KeyboardType? = null,
|
|
manualInputType: KeyboardType? = null,
|