leodriesch
leodriesch

Reputation: 5780

Flutter create infinite ListView.builder scrolling both up and down

I want to create a calendar interface with Flutter, but I can't figure out a way to make a ListView.builder that is infinite and can scroll both up (to previous dates) and down (to forward dates).

You can see it in the Google calendar app where you start it and you can scroll up and down through the calendar, with the starting point being the current date.

Upvotes: 3

Views: 1362

Answers (1)

Günter Zöchbauer
Günter Zöchbauer

Reputation: 657058

There is a ready-to-use package that provides that functionality

https://pub.dartlang.org/packages/infinite_listview

If you want to build your own the source is available.

Upvotes: 4

Related Questions