commandiron / WheelPickerCompose

Add Wheel Date - Time Picker in Android Jetpack Compose.
Apache License 2.0
475 stars 57 forks source link

Get intermediary wheel picker values #32

Open andre00nogueira opened 1 year ago

andre00nogueira commented 1 year ago

Hello! First of all, let me thank you for this super cool and handy library! I was wondering if there is a way for onSnappedDateTime to account for the intermediary values as the user scrolls. This would be useful for example in the following scenario: A user navigates to a page where they have the Wheel Picker. He scrolls the picker and as the wheel is still scrolling, he instantly saves the date and closes the page. The state would not still be updated since onSnappedDateTime is called only when the picker is not scrolling. A good way to resolve this would be for onSnappedDateTime to retrieve every value as the user scrolls so that even if he closes the page, the state would still be updated.