Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using agenda only #36

Open
CripyIce opened this issue Jul 14, 2020 · 4 comments
Open

Using agenda only #36

CripyIce opened this issue Jul 14, 2020 · 4 comments
Labels
C: Timetable Component: The actual timetable package T: Feature Type: :tada: New Features

Comments

@CripyIce
Copy link

CripyIce commented Jul 14, 2020

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!

@JonasWanke
Copy link
Owner

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 JonasWanke added C: Timetable Component: The actual timetable package T: Feature Type: :tada: New Features labels Jul 14, 2020
@CripyIce
Copy link
Author

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?

@JonasWanke
Copy link
Owner

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

@CripyIce
Copy link
Author

@JonasWanke Looking forward for the next update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Timetable Component: The actual timetable package T: Feature Type: :tada: New Features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants