AgendaStyle class
Sets the style to customize SfCalendar month agenda view.
Allows to customize the backgroundColor, dayTextStyle, dateTextStyle and appointmentTextStyle in month agenda view of calendar.
Widget build(BuildContext context) {
return Container(
child: SfCalendar(
view: CalendarView.month,
monthViewSettings: MonthViewSettings(
dayFormat: 'EEE',
numberOfWeeksInView: 4,
appointmentDisplayCount: 2,
appointmentDisplayMode: MonthAppointmentDisplayMode.appointment,
showAgenda: true,
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)
)),
),
);
}
- Annotations
Constructors
Properties
- appointmentTextStyle → TextStyle
-
The text style for the text in the Appointment view in SfCalendar
month agenda view. [...]
final
- backgroundColor → Color
-
The background color to fill the background of the SfCalendar month
agenda view. [...]
final
- dateTextStyle → TextStyle
-
The text style for the text in the date view of SfCalendar month agenda
view. [...]
final
- dayTextStyle → TextStyle
-
The text style for the text in the day text of SfCalendar month agenda
view. [...]
final
- hashCode → int
-
The hash code for this object. [...]
read-only, override
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
override