timetable
timetable copied to clipboard
Using agenda only
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!
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.
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 That seems to be a bug which is now tracked in #40
@JonasWanke Looking forward for the next update!