alphabet_list_scroll_view icon indicating copy to clipboard operation
alphabet_list_scroll_view copied to clipboard

[Bug] failed to scroll to selected alphabet after push navigation and go back

Open calvinsug opened this issue 4 years ago • 4 comments

when i push navigation after select any listView and go back to alphabet list scroll view layout,

i cannot select my desire alphabet properly, when i select anything, it forces me to scroll to the most bottom user (with Z name)

calvinsug avatar Feb 27 '20 10:02 calvinsug

I am seeing this too. I noticed when I push navigation the scroll is disposed, usually.

My use case I have

Screen A -> list AZ screen -> screen C

Going A to list AZ push works great.

If I navigate to screen C and then back to AZ list...AZ state is gone. Then anything I try to drag AZ it always push to the bottom of list starting with Z.

kmcgill88 avatar Feb 29 '20 17:02 kmcgill88

@calvinsug I'm having this exact same issue and have tried multiple versions of this library. I don't even have to push navigation, mine scrolls to Z no matter what I do!

knyghtryda avatar Mar 01 '20 03:03 knyghtryda

Thanks for reporting. I'll check it out. It'll be most useful if you can provide an example app.

LiewJunTung avatar Mar 01 '20 05:03 LiewJunTung

I haven't found a fix but have narrowed this down to when this is happening in my app. When I push list AZ screen -> screen C, screen C is kicking off a network call using the http package. As soon as the network call is made the AZ list is disposed. I remove making the network call, the AZ list works as expected going to and from screen C without losing state.

🤷‍♂ Very confusing!

kmcgill88 avatar Mar 06 '20 05:03 kmcgill88