-
-
Notifications
You must be signed in to change notification settings - Fork 424
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
♻️ Split AssetGridItemBuilder
to solve the rebuild issue
#128
Conversation
Actually the
|
Testing |
Looks good. |
Picker is broken now: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ Any usage other than inside the The relevant error-causing widget was:
|
Take another look. |
I am constantly checking :-) While performance is better scrolling down (due to |
It should be, otherwise items are still keepalive which makes Flutter unable to release memory cost for those images. |
But In any case I think this is worse in term of user experience, previous experience was better. |
Maybe there an option to extend the preloading of items? |
"Previous" only indicates the commit in this PR. Originally it does act like that too. The automatic keepalives flag isn't the same thing as a Widget does itself. |
Correct, that is what I meant. Previous = after the split. |
Going deeper, it's some GC trick that came from |
I agree, better go back to |
Sorry for that... |
I mean we keep this since we can ensure that it won't cost more memory consumption. |
The tradeoff of optimize memory save optimize speed will always be there. |
Have you registered with Discord? You can add me |
Friend request sent |
Resolves #127 .
This is a minimum solution to solve the issue directly, without any breaking changes.