agendaStyle property

AgendaStyle agendaStyle
final

Sets the style to customize SfCalendar month agenda view.

Allows to customize the AgendaStyle.backgroundColor, AgendaStyle.dayTextStyle, AgendaStyle.dateTextStyle and AgendaStyle.appointmentTextStyle in month agenda view of calendar.

See also:

Widget build(BuildContext context) {
return Container(
   child: SfCalendar(
     view: CalendarView.month,
     monthViewSettings: MonthViewSettings(
         dayFormat: 'EEE',
         numberOfWeeksInView: 4,
         appointmentDisplayCount: 2,
         appointmentDisplayMode: MonthAppointmentDisplayMode.appointment,
         showAgenda: false,
         navigationDirection: MonthNavigationDirection.horizontal,
         agendaStyle: AgendaStyle(
             backgroundColor: Colors.transparent,
            appointmentTextStyle: TextStyle(
                 color: Colors.white,
                 fontSize: 13,
                 fontStyle: FontStyle.italic
             ),
             dayTextStyle: TextStyle(color: Colors.red,
                 fontSize: 13,
                 fontStyle: FontStyle.italic),
             dateTextStyle: TextStyle(color: Colors.red,
                 fontSize: 25,
                 fontWeight: FontWeight.bold,
                 fontStyle: FontStyle.normal)
        )),
     ),
   );
}

Implementation

final AgendaStyle agendaStyle;