Open mregnauld opened 3 years ago
@mregnauld assuming, but not given that "parity" with android would be desirable what would be the practical advantage to have all ListView (and all constructors), AnimatedList and ReorderableListView ? AFAIK all the features you are requesting already exist, it just comes down to implementing it with the appropriate class
what would be the practical advantage to have all ListView (and all constructors), AnimatedList and ReorderableListView ?
Because I need them all in the same list, that all, as I explained in the Use case section. But to give you more information:
AFAIK all the features you are requesting already exist, it just comes down to implementing it with the appropriate class
Again, having those features in separate widgets is not the answer when you need all of them in the same place. And the ReorderableListView
has serious performance issues when it comes to drag & dropping items in a long list.
CC @darrenaustin @goderbauer
a few more things to note for this proposal are pointed in https://github.com/flutter/flutter/issues/75256
and i my self also would propose to add a ListWheelScrollView
functionalities in it
Additionally, please add ImplicitlyAnimatedReorderableWrap
I second this. ImplicitlyAnimatedReorderableList is bugged and poorly maintained.
Any update on this?
We have started some initial design work on this, but have nothing ready for review yet. We will certainly update this issue when we have more to discuss or propose.
Is work on this started?
The infinite list on flutter is the holy grail, not to mention if those lists contain images ... it's a pipe dream.
currently great_list_view is the best for lists, but still very far from the functionality of the RecyclerView
Any update on this?
Any update on this? I mean, it's been a year now...
currently great_list_view is the best for lists, but still very far from the functionality of the RecyclerView
̷A̷n̷d̷ ̷a̷l̷s̷o̷ ̷q̷u̷i̷t̷e̷ ̷b̷u̷g̷g̷y̷ (sorry, my bad), even though it's a decent alternative...
currently great_list_view is the best for lists, but still very far from the functionality of the RecyclerView
And also quite buggy, even though it's a decent alternative...
a little offtopic, you can always create an issue in the plugin repository
currently great_list_view is the best for lists, but still very far from the functionality of the RecyclerView
And also quite buggy, even though it's a decent alternative...
a little offtopic, you can always create an issue in the plugin repository
I agree, you're right. But I just wanted to point out that's it's a real nightmare to make a not-so-advanced list work in Flutter...
Any update on this (again)?
Something like great_list_view would actually be great.
Because here are some problems with great_list_view
so far:
So a native "super list view" would be, again, very helpful.
I'm currently migrating a music app from native Android to Flutter, and I'm struggling with a basic concept: Lists.
What I've found so far is that we have:
ListView
(includingListView.builder
,ListView.separated
...)AnimatedList
ReorderableListView
What I don't understand is: why isn't there any widget that does all of that at the same time?
Also, on a side note, the
ReorderableListView
performances are very poor when it comes to drag & dropping an item in a long list of items (2000+ items, for example).Use case
In my app, like quite a few apps actually, I want my users to be able to:
all of that in the same list.
A good example of what I expect can be found here.
Unfortunately, it doesn't provide everything I expect in the following section, and it has some small bugs. Also, even if such libraries exist, lists are a fundamental concept and should benefit from a much better implementation in Flutter.
Proposal
I suggest that you create a
SuperListView
that can be a sort of a clone of the native Android combo:RecyclerView
+ListAdapter
+ItemTouchHelper
+ItemDecoration
, and that could pick up ideas from that library, that allows the following:ListView.builder()
, I want to dynamically build each item for better performances when it comes to long lists,ListView.divider()
, I want to be able to add dividers in an easy way,ListAdapter
, I want to be able to add / update / remove item(s) by simply callingsetState(() => myDataList = myNewDataList)
or something, and that the ListView automatically does the diff (so it doesn't update / redraw the unchanged items for better performances),ListAdapter
,ReorderableListView
, as it is very well done in the mentioned library,RecyclerView
and theItemTouchHelper
,RecyclerView
and theItemTouchHelper
(in my case, I just need that then
first items are not draggable and also that the user can't move an item between or before thosen
first items, even though I need those items to be still part of the list and not in some header or something),Again, this feature is crucial, since lists are such a pain in Flutter when it comes to just a little bit more advanced use cases, as I mentioned here.