timeTextStyle property

TextStyle? timeTextStyle
final

The text style for the time text in the time slots views of 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.timelineWeek,
       timeSlotViewSettings: TimeSlotViewSettings(
           startHour: 10,
           endHour: 20,
           nonWorkingDays: <int>[
             DateTime.saturday,
             DateTime.sunday,
             DateTime.friday
           ],
           minimumAppointmentDuration: Duration(minutes: 30),
           timeInterval: Duration(minutes: 120),
           timeIntervalHeight: 80,
           timeFormat: 'h:mm',
           dateFormat: 'd',
           dayFormat: 'EEE',
           timeRulerSize: 70,
           timeTextStyle: TextStyle(
               fontSize: 15, fontStyle: FontStyle.italic,
                    color: Colors.grey)),
     ),
   );
 }

Implementation

final TextStyle? timeTextStyle;