Flutter SFCalender hide today button

499 Views Asked by At

I am using the SFCalender in my app and it works really well! (kudos to the creators). However there is one thing that annoys me:

enter image description here

The Today-Button.

I don't want it there but I can't find any way to disable it! Also it looks a bit buggy (with the 2 "x" inside) ? Is there any way to disable it? It is also not staying inside the main calenders bounds...

Happy for every help here! Could only find this issue but no reply from the team so maybe someone from the community can help me out here :)

3

There are 3 best solutions below

5
On

Seems like param you are looking for is showDatePickerButton in SfCalendar constructor

SfCalendar({
...
this.showDatePickerButton = false,
...
})

Just remove it or set to false

1
On

There is a property called showTodayButton you just have to set it to false showTodayButton: false

1
On

Regarding Query: Is there a way to hide the Today-Button in the SfCalendar?

We have already considered your requirement as a feature “Provide support to hide and show the Today icon button in the Flutter Calendar (SfCalendar)” and logged feature request for the same. We will implement this feature in any of our upcoming releases.

At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented. We appreciate your patience until then.

Thank you for requesting this feature. We are always trying to make our products better and feature requests like yours are a key part of our product growth efforts.

You can also communicate with us regarding the open features any time using our Feature Report page.

Feedback link: https://www.syncfusion.com/feedback/34053/provide-support-to-hide-and-show-the-today-icon-button-in-the-flutter-calendar

If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal and cast your vote to make it count.