-
-
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
Add a month indicator at the top of the calendar #46
Comments
Actually you can change the header this way: Import time machine patterns: Add this parameter on your Timetable: Finally write the widget code and style as you prefere:
|
I'd like to set the title of the scaffold as the month. I tried using something like @JonasWanke would it be a good idea to expose a method like |
You should be able to use class _MyState extends State<MyWidget> {
final controller = TimetableController(…);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: AnimatedBuilder(
animation: _controller.dateListenable,
builder: (context, child) => Text(_controller.dateListenable.value.monthOfYear.toString()),
),
),
body: Timetable<BasicEvent>(
controller: _controller,
// …
),
);
}
}
|
@JonasWanke that worked perfectly (except the parameter is |
As a user scrolls across the timetable, the weekday indicator is slightly unintuitive. It would be great if we could add a layer before the day of the week indicators that says "August", "September" etc.
The text was updated successfully, but these errors were encountered: