How to get current displayed month in table_calendar package flutter

1,512

Looking at https://pub.flutter-io.cn/documentation/table_calendar/latest/table_calendar/CalendarController-class.html

You should be able to get the current month by using focusedDay on the CalendarController.

focusedDay → DateTime
Currently focused day (used to determine which year/month should be visible).
read-only
Share:
1,512
Ravindra Bhanderi
Author by

Ravindra Bhanderi

I am fullstack developer with below skill 1. Laravel 2. Codeigniter 3. Flutter(Mobile dev) 4. Angular 5. Bootstrap (3,4) & CSS,HTML 6. Javascript,Jquery Looking for Hourly or Project base work

Updated on December 17, 2022

Comments

  • Ravindra Bhanderi
    Ravindra Bhanderi over 1 year

    I'm building a calendar using the table_calendar flutter package. Other all things are done now just I want to get currently selected month from the calendar. I try to find out the way and try all the events but did not get success yet. Anyone have a solution, help me a lot.

    Package Link: https://pub.dev/packages/table_calendar