3

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.

4
  • You need to show some work that you have done. Commented Feb 10, 2019 at 23:18
  • pub.dartlang.org/packages/infinite_listview might provide what you want Commented Feb 11, 2019 at 5:14
  • @GünterZöchbauer I'll try it out thanks for linking! Commented Feb 11, 2019 at 11:31
  • 1
    @GünterZöchbauer that's exactly what I'm looking for. If you want the credit post it as an answer and I'll mark it as correct. Commented Feb 14, 2019 at 8:38

1 Answer 1

4

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for this answer! It saved me a lot of work!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.