You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can't directly change index after render. But by using async example you can rerender with given list of data.
So at start you have a list with length of 10, and you want to show third item. You can remove items at index 1 and 2 and you only left with list which starts at third item. So all we need to do is get a sublist from index to length of original list.
For example
List<dynamic> list;
// for going given indexvoidchangeIndex(int index) {
_streamController.add(list.sublist(index, list.length));
}
I want to add a slider which can control the index of the card. Can you please help me with that??
The text was updated successfully, but these errors were encountered: