I am using syncfusion_flutter_datepicker to get the date range. but it seems that the month display is not showing. the name of each month is not showing, besides when selecting a month the text is not showing.
SfDateRangePicker(
onSelectionChanged: ((args) {
setState(() {
if (args.value is PickerDateRange) {
startDate = args.value.startDate;
filterDateStart = DateFormat('dd/MM/yyyy').format(args.value.startDate);
filterDateStartText = DateFormat('dd MMM yyyy').format(args.value.startDate);
endDate = args.value.endDate ?? args.value.startDate;
filterDateEnd = DateFormat('dd/MM/yyyy').format(args.value.endDate ?? args.value.startDate);
filterDateEndText = DateFormat('dd MMM yyyy').format(args.value.endDate ?? args.value.startDate);
getOrderHistoryPaginate(page: currentPage, status: filterStatus, startDate: filterDateStart, endDate: filterDateEnd);
}
});
}),
view: DateRangePickerView.month,
selectionMode: DateRangePickerSelectionMode.range,
initialSelectedRange: PickerDateRange(
startDate, endDate),
)
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.6, on Microsoft Windows [Version 10.0.22631.3737], locale en-ID)
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✓] Android toolchain – develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome – develop for the web
[✓] Visual Studio – develop Windows apps (Visual Studio Community 2019 16.11.11)
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.91.0)
[✓] Connected device (4 available)
[✓] Network resources
syncfusion_flutter_datepicker: ^22.2.12