Appears to be a syntax error in the itemBuilder example at 0:45 The child property containing MyListItem(_myItems[index]) ends in a semicolon, rather than a comma This would result in an exception if run in a real app Love these videos though!
If you want to combine them together you would need to write your own list. But if you want your items to be able to drag and drop AND nicely be inserted and removed you may try to use a Stack and place draggable list on top of the animated list. And when you want to show insert/remove animation you hide your draggable list and show your animated list, when animation is done you swap them back, so that you can drag items. I know it sounds a bit hacky but I don't know any other way.
if I have a static list (better to say a list loaded from internet but after it has been loaded it never changes until a refresh is clicked), is it possible let slide the items from bottom after data has been fetched instead of just let it appears instantly?
I am facing with a problem, I have a chat message list, when user scroll to top I will load more message and add items to top, while the items are adding at top, I send new message the item will add at bottom, in this case something wrong happen, the item at bottom dont add, I print each of item It re-build many time so the AnimatedList still not finish update so when I add at bottom the error happen
@Filip Hráček or anyone who may know: Is there any way to place *TWO* vertical AnimatedLists on the same screen? Meaning that the page is scrollable and its height consists of those two AnimatedLists
Maybe not in time xD but I think you can put them inside a CustomScrolliew, set the shrinkwrap to true and then set the physics of both to NeverScrollableScrollPhyshichs()
You would probably need to have a widget at the side of the two animated scroll lists to act as the 'scroll bar' that lets you scroll the page, cause both the animated list will catch the finger drag and scroll themselves instead of scrolling the whole page.
Unfortunately this video is very deceptive. When using the GlobalKey method you cannot be 100% certain that the currentState of the key is not null. Basically what I am saying is that if, for example, a Firebase message comes in and you need to insert that message into the animated list then the currentState of the GlobalKey you have assigned to the AnimatedList is very possibly null and cannot be used to perform the insert operation. AnimatedList needs to be enhanced or some other alternative offered which is fairly easy to use and understand.
@@christianuldallpedersen2657 I guess he meant to create a StreamBuilder, and in builder method, you build AnimationList on every event in the stream you subscribed to.
Ah yes, it's simple. So simple. Let me tell you about everything that you need to make a simple row animate in or out and all the objects you need to use and watch out for. Meanwhile in iOS: [self.tableView beginUpdates]; [self.tableView insertRowsAtIndexPaths:insertIndexPaths withRowAnimation:UITableViewRowAnimationFade]; [self.tableView deleteRowsAtIndexPaths:deleteIndexPaths withRowAnimation:UITableViewRowAnimationFade]; [self.tableView endUpdates]; End of tutorial lol