timeZone property
The time zone for SfCalendar to function.
If the Appointment.startTimeZone and Appointment.endTimeZone set as
null
the appointments will be displayed in UTC time based on the
time zone set to this property.
If the Appointment.startTimeZone and Appointment.endTimeZone set as
not null
the appointments will be displayed based by calculating the
appointment's startTimeZone and endTimeZone based on the time zone set to
this property.
Defaults to null.
See also:
- Appointment.startTimeZone, to handle time zone for appointment's start time.
- Appointment.endTimeZone, to handle time zone for appointment's end time.
- The documentation for time zone
Widget build(BuildContext context) {
return Container(
child: SfCalendar(
view: CalendarView.week,
timeZone: 'Atlantic Standard Time',
),
);
}
Implementation
final String? timeZone;