-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[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
Comments
Hi there, I've already signed the Google Individual CLA. I am trying to upload the branch where I developed the improvement: This is the error I got:
Here it is my remote, which looks to be correct:
Anyone can help me to check if I am doing something wrong? Thanks. |
Follow these steps.
|
Hi @Jaehwa-Noh, thanks a lot for the tips. It's my first contribution, so if there is any adjustment, or anything that I should improve, please let me know, I will do my best to conform to your standards. |
Is there an existing issue for this?
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
The text was updated successfully, but these errors were encountered: