Articles in this section
Category / Section

How to restrict the year view navigation while tapping header of the Flutter Date Range Picker (SfDateRangePicker)?

1 min read

In the Flutter date range picker, you can restrict the year view navigation by using the allowViewNavigation property of the date range picker. In the same way you can restrict other views also.

body: Card(
    margin: const EdgeInsets.fromLTRB(50, 150, 50, 100),
    child: SfDateRangePicker(
      view: DateRangePickerView.month,
      allowViewNavigation: false,
    ))

View sample in GitHub

Before

before navigation

 

After

after navigation

 

Conclusion
I hope you enjoyed learning about h
ow to restrict the year view navigation while tapping header of the Flutter Date Range Picker (SfDateRangePicker).

You can refer to our Flutter Calendar feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our Flutter Calendar example to understand how to create and manipulate data.

For current customers, you can check out our Document Processing Libraries from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-trac, or feedback portal. We are always happy to assist you!

 






Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied