rename onIndexChanging to onIndexDifferenceChanging in LinedTextPicker as well
This commit is contained in:
parent
087bd4ea7e
commit
be18d9859d
2 changed files with 4 additions and 4 deletions
|
|
@ -48,7 +48,7 @@ fun NumberPickerScope.LinedInnerTextPicker(modifier: Modifier = Modifier) {
|
||||||
itemCount = itemCount,
|
itemCount = itemCount,
|
||||||
selected = selectedIndex,
|
selected = selectedIndex,
|
||||||
onSelectedChange = onSelectedIndexChange,
|
onSelectedChange = onSelectedIndexChange,
|
||||||
onIndexChanging = onIndexDifferenceChanging,
|
onIndexDifferenceChanging = onIndexDifferenceChanging,
|
||||||
state = state
|
state = state
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,9 @@ fun LinedTextPicker(
|
||||||
onSelectedChange: (Int) -> Unit,
|
onSelectedChange: (Int) -> Unit,
|
||||||
textStyle: TextStyle = LocalTextStyle.current,
|
textStyle: TextStyle = LocalTextStyle.current,
|
||||||
roundAround: Boolean = TextPickerDefaults.roundAround,
|
roundAround: Boolean = TextPickerDefaults.roundAround,
|
||||||
onIndexChanging: (Int) -> Unit = TextPickerDefaults.onIndexDifferenceChanging,
|
onIndexDifferenceChanging: (Int) -> Unit = TextPickerDefaults.onIndexDifferenceChanging,
|
||||||
state: TextPickerState = rememberTextPickerState(selected = selected, itemCount = itemCount),
|
state: TextPickerState = rememberTextPickerState(selected = selected, itemCount = itemCount),
|
||||||
animator: TextPickerAnimator = rememberTextPickerAnimator(roundAround = roundAround, onIndexDifferenceChanging = onIndexChanging),
|
animator: TextPickerAnimator = rememberTextPickerAnimator(roundAround = roundAround, onIndexDifferenceChanging = onIndexDifferenceChanging),
|
||||||
textPickerContent: TextPickerContent = LinedTextPickerContent(),
|
textPickerContent: TextPickerContent = LinedTextPickerContent(),
|
||||||
textPickerMeasurePolicy: MeasurePolicy = remember(state) { LinedTextPickerMeasurePolicy(state) },
|
textPickerMeasurePolicy: MeasurePolicy = remember(state) { LinedTextPickerMeasurePolicy(state) },
|
||||||
pickerItem: @Composable (text: String, translation: Float) -> Unit = defaultNumberPickerTextAlphaModifier()
|
pickerItem: @Composable (text: String, translation: Float) -> Unit = defaultNumberPickerTextAlphaModifier()
|
||||||
|
|
@ -35,7 +35,7 @@ fun LinedTextPicker(
|
||||||
onSelectedIndexChange = onSelectedChange,
|
onSelectedIndexChange = onSelectedChange,
|
||||||
textStyle = textStyle,
|
textStyle = textStyle,
|
||||||
roundAround = roundAround,
|
roundAround = roundAround,
|
||||||
onIndexDifferenceChanging = onIndexChanging,
|
onIndexDifferenceChanging = onIndexDifferenceChanging,
|
||||||
state = state,
|
state = state,
|
||||||
animator = animator,
|
animator = animator,
|
||||||
textPickerContent = textPickerContent,
|
textPickerContent = textPickerContent,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue