How to show items from specific index in a listview builder flutter

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

I want to start showing the list items from index 5

Check this out

ListView.builder(
      itemCount: items.length,
      itemBuilder: (context, index) {
        return Visibility(
          visible: index>5,
          child: ListTile(
            title: Text('${items[index]}'),
          ),
        );
      },
    );

Maybe this is what you are looking for

ListView.builder(
itemCount: items.length - 5,
itemBuilder: (context, index) {
  return ListTile(
    title: Text(items[index+5].toString()),
  );
},
);
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x