calendarSelectionBuilder property
- @Deprecated('Use calendarItemBuilder instead')
final
Callback to build a Widget that displays the selected item in the calendar. The date and text style to be displayed as parameters.
example
calendarSelectionBuilder: (context, day, textStyle) {
return Column(
mainAxisSize: MainAxisSize.min,
children: [
Text(day, style: textStyle),
Padding(
padding: EdgeInsets.only(top: 2),
child: Text(
'selected',
style: textStyle?.copyWith(
fontSize: 10,
),
),
),
],
);
},
Implementation
@Deprecated('Use calendarItemBuilder instead')
final CalendarSelectionBuilder? calendarSelectionBuilder;