
syncfusion-flutter-calendar-datepicker
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.
- Installs
- 58
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/syncfusion/flutter-ui-components-skills --skill syncfusion-flutter-calendar-datepicker- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads syncfusion-flutter-calendar-datepicker automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Syncfusion Flutter Calendar & Date Range Picker
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.
When to Use This Skill
Use this skill when you need to:
- Implement event calendars with appointments, scheduling, and time management
- Add date selection to forms, filters, or booking interfaces
- Display calendar views (month, week, day, year, decade, timeline, schedule)
- Handle date range selection for reports, analytics, or filtering
- Create appointment/booking systems with recurring events and time zones
- Build scheduling interfaces with drag-drop, resizing, and resource views
- Enable date navigation with various view modes and restrictions
- Customize calendar appearance with builders, themes, and styling
- Support multiple date selection modes (single, multiple, range, multi-range)
- Integrate calendar localization with RTL support and accessibility
Choosing the Right Component
Use SfCalendar (Event Calendar) when:
- You need to display and manage appointments/events
- Your app requires scheduling functionality (booking, meetings, tasks)
- You need timeline views or schedule views for event management
- Time-based views are important (day, week, workweek with time slots)
- You need recurring events, time zones, or resource allocation
- Drag-and-drop or appointment resizing is required
- Building calendars for: meeting schedulers, appointment books, task managers, event planners
Use SfDateRangePicker (Date Range Picker) when:
- You need date selection without appointment management
- Your primary goal is picking dates or date ranges for forms/filters
- You need flexible selection modes (single, multiple, range, multi-range)
- Simplified date input for booking start/end dates, report periods, etc.
- You want action buttons (confirm/cancel) for date selection dialogs
- Building UI for: date filters, booking dates, report date ranges, form date inputs
Key Differences Summary:
| 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 |
Documentation and Navigation Guide
Getting Started
📄 Read: references/getting-started.md
- Installation and package setup for both components
- Basic SfCalendar implementation
- Basic SfDateRangePicker implementation
- Package dependencies and imports
- Quick comparison and first examples
Component Overview
📄 For Calendar: references/calendar-overview.md
- SfCalendar widget overview and features
- When to use Calendar vs Date Range Picker
- Nine calendar view types explained
- Calendar-specific capabilities
- Basic calendar configuration
📄 For Date Range Picker: references/datepicker-overview.md
- SfDateRangePicker widget overview and features
- When to use Date Range Picker vs Calendar
- Four picker view types explained
- Date picker-specific capabilities
- Multi-picker view (side by side)
View Types and Navigation
📄 Read: references/views.md
- Month view (both components)
- Year, decade, century views (Date Range Picker)
- Day, week, workweek views (Calendar)
- Schedule view (Calendar)
- Timeline views: day, week, workweek, month (Calendar)
- Month agenda view (Calendar)
- View switching and navigation
- Week number display
- First day of week configuration
📄 Read: references/date-navigations.md
- Forward and backward navigation
- Programmatic date navigation
- Initial display date configuration
- Navigation arrows
- View mode switching controls
- Min/max date restrictions
- Blackout dates (disabled dates)
Calendar-Specific Features
📄 Read: references/appointments.md
- Calendar appointments (events/scheduling)
- Appointment class and properties
- CalendarDataSource setup and mapping
- Custom appointment objects
- All-day appointments
- Recurring appointments and rules
- Appointment display modes
- Time zone support for appointments
- Appointment customization
Date Range Picker-Specific Features
📄 Read: references/selections.md
- Selection modes (single, multiple, range, multi-range, extendable)
- Single date selection
- Multiple date selection
- Range selection (start and end dates)
- Multi-range selection (multiple ranges)
- Programmatic selection
- Selection changed callbacks
- Initial selected date
- Selection decoration and styling
Customization and Styling
📄 Read: references/customization.md
- Visual appearance customization
- Cell styling and colors
- Header customization
- Today highlight color
- Cell border color and background
- Selection decoration
- Theme integration
- Special time regions (Calendar)
- Month cell appearance
📄 Read: references/builders.md
- Custom cell builders
- Month cell builder
- Year cell builder
- Appointment builder (Calendar)
- Time region builder (Calendar)
- Resource header builder (Calendar)
- Builder patterns and examples
Event Handling
📄 Read: references/callbacks.md
- onSelectionChanged (both components)
- onViewChanged (both components)
- onTap and onLongPress (Calendar)
- onSubmit and onCancel (Date Range Picker)
- Calendar-specific callbacks (appointment interactions)
- Callback argument types
- Event handling patterns
Localization and Accessibility
📄 Read: references/localization.md
- Internationalization support
- Locale configuration
- Date format customization
- Header and cell formats
- Globalization examples
- Right-to-left (RTL) support
📄 Read: references/accessibility.md
- Screen reader support
- Semantic labels
- Keyboard navigation
- WCAG compliance
- Focus indicators
- Accessible date selection
Advanced Features
📄 Read: references/advanced-features.md
- Time zones (Calendar)
- Resource view (Calendar)
- Drag and drop (Calendar)
- Appointment resizing (Calendar)
- Load more appointments (Calendar)
- Hijri calendar support (Date Range Picker)
- Date restrictions and constraints (Date Range Picker)
- Action buttons (Date Range Picker)
- Current time indicator (Calendar)
Quick Start Examples
Basic Calendar with Appointments
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;
}
Basic Date Range Picker
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');
}
}
}
Date Picker with Multiple Selection
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');
},
)
Common Patterns
Pattern 1: Calendar with Different Views
// 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;
});
}
Pattern 2: Date Range Filter for Reports
// 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);
},
)
Pattern 3: Customized Cell Appearance
// 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,
)
Pattern 4: Restricting Date Selection
// 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;
},
)
Key Properties
SfCalendar Essential Properties
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 restrictions
SfDateRangePicker Essential Properties
view- 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 styling
Common Use Cases
- Meeting Scheduler - Use SfCalendar with schedule view
- Event Manager - Use SfCalendar with month view, recurring events, and drag-drop
- Booking System - Use SfDateRangePicker with range selection and date restrictions
- Date Filter - Use SfDateRangePicker with range/multi-range selection for reports
- Task Manager - Use SfCalendar with schedule view and all-day appointments
- Vacation Planner - Use SfDateRangePicker with multiple selection and blackout dates
- Resource Scheduler - Use SfCalendar with resource view and timeline
- Simple Date Input - Use SfDateRangePicker with single selection mode
FAQ
What does the syncfusion-flutter-calendar-datepicker skill do?
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.
How do I install syncfusion-flutter-calendar-datepicker?
Run npx skills add https://github.com/syncfusion/flutter-ui-components-skills --skill syncfusion-flutter-calendar-datepicker in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/syncfusion-flutter-calendar-datepicker/ (personal) or .claude/skills/syncfusion-flutter-calendar-datepicker/ (project).
Which AI agents can use syncfusion-flutter-calendar-datepicker?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is syncfusion-flutter-calendar-datepicker safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains syncfusion-flutter-calendar-datepicker?
It is published by syncfusion in syncfusion/flutter-ui-components-skills. It has 58 recorded installs.
More from syncfusion/flutter-ui-components-skills
syncfusion-flutter-cartesian-charts
syncfusion/flutter-ui-components-skills
Implements 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-chat
syncfusion/flutter-ui-components-skills
Implements 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.
syncfusion-flutter-datagrid
syncfusion/flutter-ui-components-skills
Implements Syncfusion Flutter DataGrid (SfDataGrid) for displaying and manipulating tabular data in Flutter applications. Use when working with data grids, data tables, or column-based data presentation using the syncfusionflutterdatagrid package. This skill covers DataGridSource, GridColumn configuration, sorting, filtering, paging, editing, and selection.
syncfusion-flutter-circular-charts
syncfusion/flutter-ui-components-skills
Implements Syncfusion Flutter Circular Charts (SfCircularChart) for pie, doughnut, and radial bar data visualizations in Flutter. Use when working with PieSeries, DoughnutSeries, or RadialBarSeries using the syncfusionfluttercharts package. This skill covers chart setup, data labels, legends, tooltips, selection, annotations, gradients, animation, accessibility, and chart export.
syncfusion-flutter-sliders
syncfusion/flutter-ui-components-skills
Implements Syncfusion Flutter Slider controls (SfSlider, SfRangeSlider, SfRangeSelector) for numeric value selection and range inputs. Use when working with single-value sliders, range selection, or chart-range controllers in Flutter apps. This skill covers thumb and tooltip customization, ticks, dividers, RTL support, drag modes, and chart integrations.
syncfusion-flutter-barcode-generator
syncfusion/flutter-ui-components-skills
Implements 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.
Popular mobile skills
design-mobile-apps
designed-by-ai/skills
Design mobile app screens with Sleek, edit Sleek projects, and implement their designs in React Native or HTML.
ios-design
uizze.sh
Design and review iOS UI/UX for iPhone apps in SwiftUI, UIKit, or React Native. Use for mobile app design, screen redesigns, navigation flows, typography, forms, keyboard and safe-area layout, and accessibility checks. Apply Apple Human Interface Guidelines and consult real product references through the optional Uizze connection.
vercel-react-native-skills
vercel-labs/agent-skills
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
animate-expo
emilkowalski/skills
Build animations in React Native and Expo, making the decisions in the order that determines whether they feel right — should it animate, which thread it runs on, which properties, spring or timing, how the gesture hands off, how it degrades. Writes the implementation with Reanimated, Gesture Handler, Expo Router and expo-haptics. Use when animating anything in an Expo app, adding gestures, sheets, screen transitions, press feedback or haptics, or fixing motion that stutters on device. For web animation use animate.
xcode-project-setup
firebase/agent-skills
Safely modifies Xcode projects (.pbxproj) to add Swift Packages and link files. Use this skill whenever an iOS project needs dependencies installed (e.g. Firebase, Alamofire).
firebase-remote-config-basics
firebase/agent-skills
Manages Firebase Remote Config templates, feature flags, loading strategies, and SDKs (Android, iOS). Use when downloading/deploying remoteconfig JSON templates, managing version history/feature flags, setting in-app defaults, fetchAndActivate(), real-time listeners, or SDK setup. Don't use for Firebase Hosting, Auth, Firestore, Data Connect, Crashlytics, or App Hosting.