Flutter Solution for keep scroll position in ListView when adding new item on top.
Detect item position when scrolling.
Flutter Solution for keep scroll position in ListView when adding new item on top. Detect item position when scrolling.
Home Page: https://pub.dev/packages/scroll_two
License: BSD 2-Clause "Simplified" License
Hi,
I have a listview with variable list item sizes that contain images.
If you are in the middle of the list view and an image in one of the list items loads, it pushes the entire list down, and the reader loses their place in the list view.
So no items are being added to the listview, simple the content inside the list item is "changing" (an image loads and so the list item height changes)
Could this be used in that scenario?
I have found out this wrong behavior when rendering both top and bottom data list.
Let's say we have a top list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], and a bottom list = [11, 12, 13, 14, 15, 16, 17, 18, 19, 20],
then the combined values would be [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20].
Current logic
final caculationCurrentIndex = controller._top.length - index;
The current calculationCurrentIndex of index 0 for top list is wrong as it is supposed to be started at 9-indexed, instead of 10-indexed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.