syncfusion / flutter-widgets

Syncfusion Flutter widgets libraries include high quality UI widgets and file-format packages to help you create rich, high-quality applications for iOS, Android, and web from a single code base.
1.44k stars 672 forks source link

showDatePickeButton is not working after using localization package. #1829

Open VaishaliVi opened 3 weeks ago

VaishaliVi commented 3 weeks ago

Bug description

In Syncfusion flutter calendar package , showDatePickerButton that is used for QUICK VIEW NAVIGATION , is not working after applying localization package.

Steps to reproduce

After clicking on showDatePickerButton the date picker is not showing , after I used localization package.

Code sample

Code sample ```dart [Add your code here] ```SfCalendar( view: CalendarView.month, cellBorderColor: Colors.transparent, todayHighlightColor: const Color(0xFF5AA5E2), showDatePickerButton: true, showNavigationArrow: true, showTodayButton : true, // allowViewNavigation: true, dataSource: _getDataSource(), monthViewSettings: MonthViewSettings(showAgenda: false), // appointmentTimeTextFormat: 'hh:mm:ss a', initialDisplayDate: DateTime(widget.selectedYear, widget.selectedMonth), headerStyle: CalendarHeaderStyle( textStyle: GoogleFonts.asap( textStyle: TextStyle( color: const Color(0xFF5AA5E2), fontSize: 20.0, fontWeight: FontWeight.w700, ), ), ), onTap: (CalendarTapDetails details) { //_selectDate(context); if (details.targetElement == CalendarElement.calendarCell && details.appointments != null && details.appointments!.isNotEmpty) { final List selectedAppointments = details.appointments!; final List typedAppointments = selectedAppointments.cast(); _showAppointmentDetails( context, typedAppointments, details.date!); } }, ),

Screenshots or Video

Screenshots / Video demonstration After using Localization it stops working. [Upload media here]

Screenshot (882)

Stack Traces

Stack Traces ```dart [Add the Stack Traces here] ```

...

On which target platforms have you observed this bug?

Android

Flutter Doctor output

Doctor output ```console [Add your output here] ```[√] Flutter (Channel stable, 3.19.5, on Microsoft Windows [Version 10.0.19045.4170], locale en-IN) • Flutter version 3.19.5 on channel stable at D:\flutter\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 300451adae (4 weeks ago), 2024-03-27 21:54:07 -0500 • Engine revision e76c956498 • Dart version 3.3.3 • DevTools version 2.31.1 [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at C:\Users\hp\AppData\Local\Android\sdk • Platform android-34, build-tools 34.0.0 • Java binary at: D:\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866) • All Android licenses accepted. [√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe [√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.4.4) • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community • Visual Studio Community 2022 version 17.4.33213.308 • Windows 10 SDK version 10.0.22000.0 [√] Android Studio (version 2021.3) • Android Studio at D:\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866) [√] VS Code (version 1.88.1) • VS Code at C:\Users\hp\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.26.0 [√] Connected device (4 available) • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.4170] • Chrome (web) • chrome • web-javascript • Google Chrome 124.0.6367.61 • Edge (web) • edge • web-javascript • Microsoft Edge 124.0.2478.51 [√] Network resources • All expected network resources are available. • No issues found!
PreethikaSelvam commented 2 weeks ago

Hi @VaishaliVi,

We have checked your query with your code snippet, but unfortunately, we are unable to reproduce any issue as we are not sure in what scenario the issue is replicating. Therefore, we kindly request you to try replicating the reported issue in the test sample attached below and revert to us. This will help us assist you in a better way.

Additionally, we have also ensured this case in our live sample which is working fine. We have shared the link below for your reference.

Link: https://flutter.syncfusion.com/#/event-calendar/localization

Please check and get back to us if you require further assistance.

Regards,

Preethika Selvam. bd585258.zip