showTodayButton property

bool showTodayButton
final

Displays the today button on the header view of SfCalendar.

If the property set as true then the header view will show the today button which is used to navigate the today view.

Defaults to false.

Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
     view: CalendarView.day,
     showTodayButton: true,
     ),
   );
 }

Implementation

final bool showTodayButton;