如何在 table_calendar package flutter 中获取当前显示的月份
How to get current displayed month in table_calendar package flutter
我正在使用 table_calendar flutter 包构建日历。其他所有事情现在都完成了,我只想从日历中获取当前选择的月份。我试图找出方法并尝试所有事件但尚未成功。谁有解决办法,帮帮我。
您应该能够通过在 CalendarController 上使用 focusedDay
来获取当前月份。
focusedDay → DateTime
Currently focused day (used to determine which year/month should be visible).
read-only
我正在使用 table_calendar flutter 包构建日历。其他所有事情现在都完成了,我只想从日历中获取当前选择的月份。我试图找出方法并尝试所有事件但尚未成功。谁有解决办法,帮帮我。
您应该能够通过在 CalendarController 上使用 focusedDay
来获取当前月份。
focusedDay → DateTime
Currently focused day (used to determine which year/month should be visible).
read-only