zenled / calendar_views

Collection of customisable calendar related widgets for Flutter.
https://pub.dartlang.org/packages/calendar_views
MIT License
102 stars 49 forks source link

Day view is not scrollable vertically #19

Closed gagandeep-s closed 4 years ago

gagandeep-s commented 4 years ago

day view while rendering positioned widgets doesn't enable vertical scroll. Entire view from 00:00 hrs to 23:59 hrs should be visible and vertically scrollable.

gagandeep-s commented 4 years ago

I managed to resolve this by creating a listview container at the top of "new DayViewSchedule()" instantiation:

return Container( child: new DayViewEssentials( properties: new DayViewProperties( days: <DateTime>[_today], ), child: new Column( children: <Widget>[ new Container( color: Colors.grey[200], child: new DayViewDaysHeader( headerItemBuilder: _headerItemBuilder, )), new Expanded( ------- child: ListView(children: <Widget>[ ------- new DayViewSchedule( heightPerMinute: 1.0, components: <ScheduleComponent>[ new TimeIndicationComponent.intervalGenerated( generatedTimeIndicatorBuilder: _generatedTimeIndicatorBuilder, ), new SupportLineComponent.intervalGenerated( generatedSupportLineBuilder: _generatedSupportLineBuilder, ), new DaySeparationComponent( generatedDaySeparatorBuilder: _generatedDaySeparatorBuilder, ), new EventViewComponent( getEventsOfDay: _getEventsOfDay, ) ], ) ]), ) ], )), );