cr_calendar
1.3.0, released a year ago by cleveroad.com
Customizable Flutter calendar widget with range picking and event showing.
What it does
Provides a horizontally scrollable month view calendar with event lines over days and a date selection dialog mode. It allows customization of day cells, week days, headers, and selection touch modes.
AI-written summary of version 1.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a Google Calendar-inspired UI in your Flutter application.
- You require customizable calendar event rendering over day cells.
- You need a date range picker dialog with customizable buttons and layout.
Skip it when
- You need a non-calendar scheduling tool or a simple list-based agenda without a month grid.
- Frequent setState calls on the parent page cannot be avoided, which may cause performance issues.
Strengths
- Google Calendar-inspired design and features
- Supports event lines displayed directly over day cells
- Includes a built-in date range picker dialog
- Highly customizable builders for days, week days, and buttons
Weaknesses
- Frequent setState calls on the page using the calendar can impact performance
- Limited documentation outside of README parameter tables
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Not documented
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
CrCalendarController _controller = CrCalendarController();
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: CrCalendar(
initialDate: DateTime.now(),
controller: _controller,
),
),
);
}
}Alternatives
Packages that do the same job and could replace cr_calendar.
- flutter_calendar_carousel
An accessible, theme-aware Flutter calendar with lazy month and week paging.
93Compare - syncfusion_flutter_datepicker
A Flutter widget for selecting single dates, multiple dates, or date ranges with various calendar views.
91Compare - calendar_view
A Flutter package providing multiple calendar views and event management functionality.
83Compare - cupertino_calendar_picker
Cupertino-style date and time picker widgets for Flutter
84Compare
Works with
Packages commonly used together with cr_calendar: ones it builds on, ones built on it, and its own family.
- intlcr_calendar depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- scrollable_positioned_listcr_calendar depends on itA Flutter list with helper methods to programmatically scroll to an item.
- jiffycr_calendar depends on itParse, manipulate, query, and format dates and times in Dart and Flutter.
- cr_json_widgetSame familyA Flutter widget that visualizes JSON data and tree structures.