initialDisplayDate property

DateTime initialDisplayDate
final

The initial date to show on the SfCalendar.

The SfCalendar will display the dates based on the date set to this property.

Defaults to DateTime(DateTime.now().year, DateTime.now().month, DateTime.now().day, 08, 45, 0).

See also:


Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.week,
       initialDisplayDate: DateTime(2020, 02, 05, 10, 0, 0),
     ),
   );
 }

Implementation

final DateTime initialDisplayDate;