In the Flutter date range picker, you can programmatically select the date using selectedDate property of the DateRangePickerController. In initState(), initialize the calendar controller. final DateRangePickerController _controller = DateRangePickerController(); Using onViewChanged callback of the Flutter date picker, you can set the first date of visible dates as selected date. Please find the code snippet. child: SfDateRangePicker( view: DateRangePickerView.month, controller: _controller, onViewChanged: viewChanged, ), void viewChanged(DateRangePickerViewChangedArgs args) { SchedulerBinding.instance!.addPostFrameCallback((Duration duration) { _controller.selectedDate = args.visibleDateRange.startDate; }); }
|
This page will automatically be redirected to the sign-in page in 10 seconds.
This no longer works properly when handling cell rendering via a builder. Any suggestions?
Nevermind :) THis works fine.
Hi James,
Thank you for contacting Syncfusion support.
Based on the last update, we hope that issue has been resolved at your end. Please get in touch with us if you would require any further assistance.
Regards, Indumathi R