WheelPickerCompose
WheelPickerCompose copied to clipboard
Add note in doc and API comment that rowCount should be odd
When the rowCount is even, then the middle two rows are highlighted. Odd count gives correct behavior
Hi, you are right. I realized before. Comment could be useful too. I will add next release. Actually row count must be get only odd paramenters but i couldn't find any function about this like IntRange. Any idea?
You could maybe do something like
val rowCount = if (listPickerContent.size % 2 == 0) listPickerContent.size + 1 else listPickerContent.size