The Timeline Calendar is a Flutter package that displays a calendar in a timeline format, providing an intuitive and visually appealing way to view dates throughout the month.
- Timeline-style calendar display.
- Easy and quick integration into existing Flutter apps.
To install Timeline Calendar in your Flutter project, follow these steps:
- Add the
timeline_calendar
dependency to your project'spubspec.yaml
file:
dependencies:
flutter:
sdk: flutter
timeline_calendar: ^1.0.2
- Run the
flutter pub get
command in the terminal to install the dependency.
TimelineCalendar(
initialDate: DateTime.now(),
firstDate: DateTime.now().subtract(const Duration(days: 365)),
lastDate: DateTime.now().add(const Duration(days: 365)),
onDateSelected: (date) => print(date),
leftMargin: 20,
activeDayColor: Colors.white,
disabledColor: Colors.black54,
activeBackgroundDayColor: Colors.black,
locale: '
pt
'
,
),
You can customize the Timeline Calendar according to your needs. Some examples of customization include:
- Customizing the calendar header style.
- Specifying the date range to be displayed.
This feature is currently under development.
Yes, you can customize the calendar style by providing your own style
configurations to the corresponding parameters of the TimelineCalendar
component.
Contributions are welcome! Feel free to open an issue or submit a pull request to suggest improvements, bug fixes, or new features.
This package is licensed under the MIT.