Welcome to the Flutter feedback portal. We’re happy you’re here! If you have feedback on how to improve the Flutter, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
In the syncfusion_flutter_calendar package, the dateText is formatted using the DateFormat class without any specified locale, resulting in dates being displayed in a single, fixed format.
Issue Description: I'm facing an inconsistency in the timelineDay view of the syncfusion_flutter_calendar package when the app language is set to English and the device(IOS,Android) language is set to Arabic. Reproducible Steps:
1- Set the app language to English and the device language to Arabic.
2- Navigate to the timelineDay view in the syncfusion_flutter_calendar.
3- Observe that the date formatting for the events is not taking the app's language into account, and it still displays dates in Arabic format.
Expected Behavior: The syncfusion_flutter_calendar should respect the app's language setting when displaying dates in the timelineDay view. If the app language is set to English and the device language is set to Arabic, the dates(especially the number) should be displayed in English format to provide a consistent and localized user experience. I hope this provides a clear understanding of the problem.
If you need any further information or have any questions, please let me know. Your assistance in resolving this issue is highly appreciated.
To address this limitation and provide a more user-friendly experience, I made the following modification:
final String dateText = DateFormat(timeSlotViewSettings.dateFormat, locale).format(currentDate);I have already tested this modification in my forked repository, and it works as expected. However, I believe it would be beneficial to include this enhancement in the official syncfusion_flutter_calendar package so that all users can benefit from localized date formatting.
Link of forked repo: