-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
More design options #91
Comments
Restricting the available dates is possible: You can specify the limit in the final dateController = DateController(
visibleRange: VisibleDateRange.days(
1, // only show one day at a time
minDate: DateTimeTimetable.today(),
maxDate: DateTimeTimetable.today() + 13.days, // both are inclusive
),
); Something like a To build the header (except for the month and arrows, for which there's currently no similar widget), you can use I hope this answers your questions :) |
Wow, thank you very much! This crazy amount of possibilities to customize the timetable just shows how underrated this library really is. I got most of it working now, but I stumbled upon one or two small things that I am again not sure how to approach correctly: I want the current date to be highlighted like it is by default (the blue circle in the screenshot below). But, I also like the currently selected date to be highlighted differently. I was trying to pass a custom Also, one more small thing: I also added a I know that I am just nit-picking with these little details, but if there is a way to accomplish this the clean way, it would be very nice :) Again, thank you very much! :) |
Also, I noticed a small bug in If I use a |
Great to hear that :) You can modify the inner Timetable components by wrapping the header in TimetableTheme(
data: TimetableThemeData(
context,
dateIndicatorStyleProvider:
(date) => DateIndicatorStyle(context, date, ...),
weekdayIndicatorStyleProvider:
(date) => WeekdayIndicatorStyle(context, date, ...),
),
child: <page view with DateHeaders>,
)
To change the highlighted To animate the header (assuming you use a Regarding your second comment: |
If I could give this library even more thumbs up on pub.dev, I would do that. Thank you very much for your support! Everything is working now (my code isn't that clean yet, but it works)! Thank you very much! For everyone else wondering, the new code can be found here: ThexXTURBOXx/studipassau@58049ca |
Currently I am rewriting an old app of mine for students of the university that I attend. Back then, I came up with the design seen in the screenshot below.
I like the design and would like the new app to look something similar (with some changes of course) to the old one.
There are two major things in the image I am trying to achieve with
timetable
currently:Things that I already accomplished:
visibleDateRange
to 1 day and, thus, only one day is shown in the timetablevisibleTimeRange
to 7.30 AM to 8.30 PMAnd now the things I am unsure about:
DateScrollPhysics
somewhere, but can't find the class)MultiDateTimetable
for only showing one date at a time (which is somehow counter-intuitive)W 31
andTue 3
)? If not, how would I go about somehow getting rid of those in order to place my own header there, which features clickable buttons for the available dates?I think, these are already enough questions and stuff. Thank you very much in advance! :)
Old app:
Current status of the new app:
The text was updated successfully, but these errors were encountered: