calendar_views icon indicating copy to clipboard operation
calendar_views copied to clipboard

How to make the day view scrollable horizontally?

Open ryanhz opened this issue 4 years ago • 7 comments

I think instead of making the with of each day squeeze in the full screen, why not make the it scrollable horizontally, like data tabale do, so you can scroll to the end if you can't see them all?

ryanhz avatar Jul 19 '19 04:07 ryanhz

Good idea, any news on this ticket?

kevinApplaud avatar Aug 07 '19 14:08 kevinApplaud

@huzhiren I have implemented horizontal scrolling on my fork. Its a little different since my goal is to display multiple peoples schedule in different columns for the same day. Hopefully it helps you.

vikramkapoor avatar Sep 29 '19 03:09 vikramkapoor

really nice calendar library. i'm using it for a 5 day view. however, my data is stored in sqlite database and i've been trying to find where i can apply a FutureBuilder() since the calendar items are coming back in an asynchronous way

bcycgcg avatar Oct 26 '19 00:10 bcycgcg

currently, i don't know if your calendar allows for that because of null checks in the DayViewSchedule and also, because i'm passing in a list of _getEventsOfDay into EventViewComponent(), i can't just wrap the DayViewSchedule() widget in a FutureBuilder(). any help on how i can implement using FutureBuilder() would be really helpful.

thanks, Billy.

bcycgcg avatar Oct 26 '19 01:10 bcycgcg

I noticed the same limitation but worked around it by listening to all the events in the InitState and calling setState on any changes. I haven't seen any performance issues with that yet. What is your scenario?

vikramkapoor avatar Oct 26 '19 01:10 vikramkapoor

thanks for the quick response. i used your suggestion. works good now. thx.

bcycgcg avatar Oct 26 '19 01:10 bcycgcg

@huzhiren I have implemented horizontal scrolling on my fork. Its a little different since my goal is to display multiple peoples schedule in different columns for the same day. Hopefully it helps you.

Would pinch zoom be difficult to add?

l-k22 avatar Nov 01 '19 16:11 l-k22