Package selection guidance compiled from public package information, community data, and project usage.
cr_calendar is a customizable Flutter calendar package that supports range selection, event highlighting, and extensive styling options. It provides a clean, modern interface for displaying dates and events across multiple platforms including Android, iOS, Web, macOS, Windows, and Linux. The package allows developers to tailor the appearance and behavior of the calendar to fit various use cases, such as scheduling, booking systems, or personal planners. With built-in support for date ranges and event markers, it simplifies date management in Flutter applications.
Use cases
Scheduling appointments
Booking systems
Event tracking
Personal planners
Date range selection
Calendar-based dashboards
Key features
Customizable UI
Range date picking
Event marking
Multi-platform support
Flexible date formatting
Theme integration
Suitable for
Developers building appointment apps
Teams creating booking interfaces
Apps requiring date visualization
Flutter projects with calendar needs
UI-focused date pickers
Considerations
Requires manual event data management
Limited built-in localization
No native time selection
Styling may require custom code
Platform-specific rendering nuances
Dependent on external state management
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
CrCalendar
Customizable Flutter calendar inspired by Google Calendar app.
Features:
CrCalendar widget for displaying horizontally scrollable month view, with events lines over days.
date selection dialog (uses CrCalendar widget in range selection mode) with customization of buttons, texts and look of the CrCalendar widget.
Note: avoid using setState calls frequently on the page where the CrCalendar widget is used to improve performance.
Usage of CrCalendar date picker dialog
DatePickerProperties parameters:
Type
Name
Description
Default value
Color
backgroundColor
Background color for date picker dialog and year selection widget.
Colors.white
DateTime
initialPickerDate
Initial date to be opened on dialog creation.
-
EdgeInsets
padding
Picker dialog padding.
EdgeInsets.all(8)
DayItemBuilder
dayItemBuilder
Builder for day item in dialog.
-
TouchMode
pickerMode
Picker selection mode.
-
WeekDaysBuilder
weekDaysBuilder
Builder for row of days over month view.
-
DateTitleBuilder
pickerTitleBuilder
Title builder for widget on top of picker dialog.
-
Alignment
pickerTitleAlignInLandscape
Alignment of picker title in landscape mode.
Alignment.centerLeft
Widget
backButton
Back button for picker control bar.
-
Widget
forwardButton
Forward button for picker control bar.
-
DateTitleBuilder
controlBarTitleBuilder
Builder for control bar title showed between backButton and forwardButton.
-
bool
showControlBar
Option for hiding control bar.
true
YearPickerItemBuilder
yearPickerItemBuilder
Builder for confirm selection button.
-
PickerButtonBuilder
okButtonBuilder
Builder for confirm selection button.
-
PickerButtonBuilder
cancelButtonBuilder
Builder for cancel button.
-
bool
forceSixWeek
Force showing six week rows in month view.
false
WeekDays
firstWeekDay
First day of date picker calendar.
WeekDays.sunday
DateTime
minDate
Earliest allowable date.
-
DateTime
maxDate
Latest allowable date.
-
LandscapeDaysResizeMode
landscapeDaysResizeMode
LandscapeDaysResizeMode.adaptive - days cells will change their height according to parent height LandscapeDaysResizeMode.scrollable - days cells will change their height according to parent height as long as it is larger than the cells width. The month scrolls if there is not enough space
LandscapeDaysResizeMode.adaptive
Base usage:
/// Show calendar in pop up dialog for selecting date range for calendar event.void_showDatePicker(BuildContext context) {
showCrDatePicker(
context,
properties: DatePickerProperties(
firstWeekDay: WeekDays.monday,
okButtonBuilder: (onPress) =>
ElevatedButton(child: constText('OK'), onPressed: onPress),
cancelButtonBuilder: (onPress) =>
OutlinedButton(child: constText('CANCEL'), onPressed: onPress),
initialPickerDate: DateTime.now(),
),
);
}