timetable icon indicating copy to clipboard operation
timetable copied to clipboard

Using agenda only

Open CripyIce opened this issue 3 years ago • 4 comments

Hi there, I was wondering if it's possible to use only the agenda widget and then change the content manually via a custom date selection widget.

Edit: After checking out the source code a little bit, what I want to use is TimetableContent and also be able disabling the horizontal scrolling for the reason I mentioned above.

Thanks!

CripyIce avatar Jul 14 '20 06:07 CripyIce

It's possible to use TimetableContent as a standalone widget. I was planning to expose that class and provide an example of its usage but didn't have the time to do that yet, hence you'll have to use an implementation import (import 'package:timetable/src/content/timetable_content.dart'; instead of just import 'package:timetable/timetable';).

You can change the displayed dates via TimetableController.animateTo and TimetableController.visibleRange, and modify the theme by wrapping TimetableContent in a TimetableTheme widget.

Disabling horizontal scrolling is not yet supported, but that should be possible when #25 is implemented by limiting the range to currently visible dates.

JonasWanke avatar Jul 14 '20 10:07 JonasWanke

Thanks for the reply and suggesting wrapping the widget with TimetableTheme. But, when using TimetableTheme I've set minimumHourHeight to 100.0 and maximumHourHeight to 150.0 and I can see this change only when starting to scroll the widget. Any ideas on how to fix that?

CripyIce avatar Jul 14 '20 13:07 CripyIce

@CripyIce That seems to be a bug which is now tracked in #40

JonasWanke avatar Jul 14 '20 14:07 JonasWanke

@JonasWanke Looking forward for the next update!

CripyIce avatar Jul 14 '20 14:07 CripyIce