Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the problem
In the file ScrollbarExt.kt file there is room for reducing the logic and code repeating in order to improve the reusability and maintainability.
Moreover, this improvement will make it better for developers who use the nia sample to study, and learn ways to use Kotlin to increase resusability.
The scrollbarState
extension function for the LazyListState, LazyGridState, LazyStaggeredGridState have a lot of common logic that could be unified.
Describe the solution
My suggestion is to unify into a more generic extension function:
<LazyState : ScrollableState, LazyStateItem> LazyState.genericScrollbarState
Additional context
No response
Code of Conduct
- I agree to follow this project's Code of Conduct