showTimeIndicator property

bool showTimeIndicator
final

Displays the time indicator on the time ruler view.

The indicator will display the dragging appointment time on the time ruler view of calendar.

See also:

Note: When the timeSlotViewSettings.timeRulerSize, when this property set as 0, the time indicator will not displayed even the showTimeIndicator set as true.

Widget build(BuildContext context) {
  return Scaffold(
    body: SfCalendar(
      view: CalendarView.month,
      showWeekNumber: true,
      allowDragAndDrop: true,
      dragAndDropSettings: DragAndDropSettings(
        allowNavigation: true,
        allowScroll: true,
        autoNavigateDelay: Duration(seconds: 1),
        indicatorTimeFormat: 'HH:mm a',
        showTimeIndicator: true,
      ),
    ),
  );
}

Implementation

final bool showTimeIndicator;