showTimeIndicator property
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:
- timeIndicatorStyle, which used to customize the time indicator text.
- indicatorTimeFormat, which used to format the time indicator text in calendar.
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;