You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FR]: In the file ScrollbarExt.kt there is room for reducing the logic and code repeating in order to improve the reusability and maintainability #1549
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