selectionDecoration property

Decoration? selectionDecoration
final

The decoration for the selection cells in SfCalendar.

Defaults to null.

Using a SfCalendarTheme gives more fine-grained control over the appearance of various components of the calendar.

See also:


Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.month,
       selectionDecoration: BoxDecoration(
          color: Colors.transparent,
            border:
              Border.all(color: const Color.fromARGB(255, 68, 140, 255),
                    width: 2),
            borderRadius: const BorderRadius.all(Radius.circular(4)),
            shape: BoxShape.rectangle,
        ),
     ),
   );
 }

Implementation

final Decoration? selectionDecoration;