gildaswise/firestore_ui

Animated sorting changes do not appear

Closed this issue · 1 comments

ened commented

It seems like resorting / moving items around is not supported yet.
The use case can happen quite often, when a list is updated & items change positions.

The values themselves are updated correctly.

It works OK when using the example outlined in https://pub.dartlang.org/packages/cloud_firestore, just not nicely animated. I would prefer for the items to slide into their correct positions.

It's been a while since I reviewed this issue, the problem lies on a very simple problem: Firestore doesn't have something as onChildMoved, and the reason for removing it was that. For that to work, FirestoreList would have to check locally whether there was a move action or not, and that's probably not ideal to do on a streamable list every time something changes.

I'll close this issue but if someone wants to tackle this problem, feel free.