/syncfusion-flutter:syncfusion-flutter-calendar-datepickerfrom Syncfusion Flutter Widgets
Implements Syncfusion Flutter Calendar (SfCalendar) and Date Range Picker (SfDateRangePicker) widgets for date and scheduling UIs in Flutter apps. Use when building appointment calendars, booking systems, date range selectors, or event scheduling interfaces. This skill covers calendar views, recurring events, date navigation, localization, callbacks, and customization.
Ships in Syncfusion Flutter Widgets. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill covers two related Syncfusion Flutter components for date and calendar functionality: SfCalendar (Event Calendar) and SfDateRangePicker (Date Range Picker). While they share many visual and configuration features, they serve different primary purposes.
Use this skill when you need to:
| Feature | SfCalendar | SfDateRangePicker |
|---|---|---|
| Primary Purpose | Event scheduling & display | Date selection |
| Appointments/Events | ✅ Full support | ❌ Not supported |
| View Types | 9 views (day, week, timeline, etc.) | 4 views (month, year, decade, century) |
| Selection Modes | Single date/time slot | Single, multiple, range, multi-range |
| Time Slots | ✅ Yes (with time) | ❌ Dates only |
| Action Buttons | ❌ No | ✅ Confirm/Cancel buttons |
| Recurring Events | ✅ Yes | ❌ No |
| Time Zones | ✅ Yes | ❌ No |
| Resource View | ✅ Yes | ❌ No |
| Drag & Drop | ✅ Yes | ❌ No |
📄 Read: references/getting-started.md
📄 For Calendar: references/calendar-overview.md
📄 For Date Range Picker: references/datepicker-overview.md
📄 Read: references/views.md
📄 Read: references/date-navigations.md
📄 Read: references/appointments.md
📄 Read: references/selections.md
📄 Read: references/customization.md
📄 Read: references/builders.md
📄 Read: references/callbacks.md
📄 Read: references/localization.md
📄 Read: references/accessibility.md
📄 Read: references/advanced-features.md
import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_calendar/calendar.dart';
class MyCalendar extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('My Calendar')),
body: SfCalendar(
view: CalendarView.month,
dataSource: MeetingDataSource(_getDataSource()),
monthViewSettings: MonthViewSettings(
appointmentDisplayMode: MonthAppointmentDisplayMode.appointment
),
),
);
}
List<Meeting> _getDataSource() {
final List<Meeting> meetings = <Meeting>[];
final DateTime today = DateTime.now();
final DateTime startTime = DateTime(today.year, today.month, today.day, 9, 0, 0);
final DateTime endTime = startTime.add(Duration(hours: 2));
meetings.add(Meeting(
'Conference',
startTime,
endTime,
Color(0xFF0F8644),
false
));
return meetings;
}
}
class MeetingDataSource extends CalendarDataSource {
MeetingDataSource(List<Meeting> source) {
appointments = source;
}
@override
DateTime getStartTime(int index) => appointments![index].from;
@override
DateTime getEndTime(int index) => appointments![index].to;
@override
String getSubject(int index) => appointments![index].eventName;
@override
Color getColor(int index) => appointments![index].background;
@override
bool isAllDay(int index) => appointments![index].isAllDay;
}
class Meeting {
Meeting(this.eventName, this.from, this.to, this.background, this.isAllDay);
String eventName;
DateTime from;
DateTime to;
Color background;
bool isAllDay;
}
import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_datepicker/datepicker.dart';
class MyDatePicker extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('Select Date Range')),
body: SfDateRangePicker(
view: DateRangePickerView.month,
selectionMode: DateRangePickerSelectionMode.range,
onSelectionChanged: _onSelectionChanged,
showActionButtons: true,
),
);
}
void _onSelectionChanged(DateRangePickerSelectionChangedArgs args) {
if (args.value is PickerDateRange) {
final DateTime startDate = args.value.startDate;
final DateTime? endDate = args.value.endDate;
print('Selected range: $startDate to $endDate');
}
}
}
SfDateRangePicker(
view: DateRangePickerView.month,
selectionMode: DateRangePickerSelectionMode.multiple,
initialSelectedDates: [
DateTime.now(),
DateTime.now().add(Duration(days: 2)),
DateTime.now().add(Duration(days: 5)),
],
onSelectionChanged: (DateRangePickerSelectionChangedArgs args) {
final List<DateTime> selectedDates = args.value;
print('Selected ${selectedDates.length} dates');
},
)
// Switch between day, week, month, and schedule views
CalendarView _calendarView = CalendarView.month;
SfCalendar(
view: _calendarView,
dataSource: MeetingDataSource(_appointments),
onViewChanged: (ViewChangedDetails details) {
// Handle view changes
},
)
// Toggle view with buttons
void _changeView(CalendarView view) {
setState(() {
_calendarView = view;
});
}
// Common pattern for selecting date ranges in analytics/reports
PickerDateRange? _selectedRange;
SfDateRangePicker(
selectionMode: DateRangePickerSelectionMode.range,
onSelectionChanged: (DateRangePickerSelectionChangedArgs args) {
setState(() {
_selectedRange = args.value;
});
},
showActionButtons: true,
onSubmit: (Object? value) {
if (_selectedRange != null) {
_loadReportData(_selectedRange!.startDate, _selectedRange!.endDate);
}
Navigator.pop(context);
},
)
// Custom styling for both components
SfCalendar(
view: CalendarView.month,
todayHighlightColor: Colors.blue,
cellBorderColor: Colors.grey[300],
backgroundColor: Colors.white,
selectionDecoration: BoxDecoration(
color: Colors.transparent,
border: Border.all(color: Colors.blue, width: 2),
borderRadius: BorderRadius.circular(4),
),
)
SfDateRangePicker(
todayHighlightColor: Colors.green,
selectionColor: Colors.blue,
rangeSelectionColor: Colors.blue.withOpacity(0.3),
startRangeSelectionColor: Colors.blue,
endRangeSelectionColor: Colors.blue,
)
// Disable past dates and weekends
SfDateRangePicker(
minDate: DateTime.now(),
maxDate: DateTime.now().add(Duration(days: 365)),
selectableDayPredicate: (DateTime date) {
// Disable weekends
return date.weekday != DateTime.saturday &&
date.weekday != DateTime.sunday;
},
)
view - Calendar view type (day, week, month, schedule, timeline, etc.)dataSource - CalendarDataSource with appointmentsinitialDisplayDate - Date to display initiallyinitialSelectedDate - Initially selected date/timemonthViewSettings - Configuration for month viewtimeSlotViewSettings - Configuration for day/week viewsscheduleViewSettings - Configuration for schedule viewtodayHighlightColor - Color for today's dateselectionDecoration - Selection stylingonTap - Callback when cell is tappedonLongPress - Callback for long pressonViewChanged - Callback when view changesonSelectionChanged - Callback when selection changesshowNavigationArrow - Show forward/backward arrowsshowCurrentTimeIndicator - Show current time lineallowViewNavigation - Allow switching between viewsfirstDayOfWeek - First day of week (1-7)blackoutDates - Dates to disableminDate / maxDate - Date range restrictionsview - Picker view type (month, year, decade, century)selectionMode - Selection mode (single, multiple, range, multiRange, extendableRange)initialSelectedDate - Initially selected dateinitialSelectedDates - Initially selected dates (multiple mode)initialSelectedRange - Initially selected rangeinitialSelectedRanges - Initially selected ranges (multi-range mode)initialDisplayDate - Date to display initiallymonthViewSettings - Configuration for month viewyearViewSettings - Configuration for year viewtodayHighlightColor - Color for today's dateselectionColor - Selection colorrangeSelectionColor - Range selection colorstartRangeSelectionColor - Start date colorendRangeSelectionColor - End date coloronSelectionChanged - Callback when selection changesonViewChanged - Callback when view changesonSubmit - Callback when confirm button pressedonCancel - Callback when cancel button pressedshowActionButtons - Show confirm/cancel buttonsshowTodayButton - Show today buttonallowViewNavigation - Allow switching between viewsenablePastDates - Enable past date selectionminDate / maxDate - Date range restrictionsselectableDayPredicate - Custom date validationmonthCellStyle - Month cell stylingyearCellStyle - Year cell stylingreferences/accessibility.md (opens in a new tab)references/advanced-features.md (opens in a new tab)references/appointments.md (opens in a new tab)references/builders.md (opens in a new tab)references/calendar-overview.md (opens in a new tab)references/callbacks.md (opens in a new tab)references/customization.md (opens in a new tab)references/date-navigations.md (opens in a new tab)references/datepicker-overview.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/localization.md (opens in a new tab)references/selections.md (opens in a new tab)references/views.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-flutterOther plugins' skills for the same job
14 skills in this plugin
/syncfusion-flutter-barcode-generatorImplements Syncfusion Flutter Barcode Generator (SfBarcodeGenerator) for generating 1D and 2D barcodes in Flutter apps. Use when working with QR codes, Data Matrix, Code128, EAN, UPC, or other machine-readable barcode formats. This skill covers barcode types, customization, sizing, text display, and integration into product labels, ticketing, or inventory systems./syncfusion-flutter-cartesian-chartsImplements Syncfusion Flutter Cartesian Charts (SfCartesianChart) for a wide range of 2D chart types in Flutter apps. Use when working with line, column, bar, area, spline, scatter, bubble, financial, stacked, or histogram charts. This skill covers axis types (NumericAxis, CategoryAxis, DateTimeAxis), zoom and pan, tooltip, trackball, legend, annotations, technical indicators, trendlines, and chart export./syncfusion-flutter-chatImplements Syncfusion Flutter Chat (SfChat) and AI AssistView (SfAIAssistView) widgets for conversational interfaces in Flutter apps. Use when building chat UIs, AI chatbot interfaces, or messaging screens with support for message bubbles, composers, and action buttons. This skill covers conversation area customization, placeholder screens, theming, RTL support, and AI assistant integration.