Skip to content

How to highlight the tapped view header in the Flutter calendar

Notifications You must be signed in to change notification settings

SyncfusionExamples/highlight-the-tapped-view-header-flutter-calendar

Repository files navigation

How to highlight the tapped view header in the Flutter Calendar?

This example demonstrates how to highlight the tapped view header in the Flutter Calendar.

By hiding the default headers and including the custom widgets, you can highlight the selected view header date and day in the Flutter Event Calendar.

Higlighting the tapped view header

You can get the visible dates details from the onViewChanged callback and using the ListView.builder widget load the view header text with GestureDetector. Then based on the selected index highlight the view header day and date text.

Highlight

Requirements to run the demo

How to run this application

To run this application, you need to first clone or download the ‘create a flutter maps widget in 10 minutes’ repository and open it in your preferred IDE. Then, build and run your project to view the output.

Further help

For more help, check the Syncfusion Flutter documentation, Flutter documentation.