Closed AhmedAlboishe closed 5 months ago
Hi @AhmedAlboishe,
We have migrated our source to be compatible with Flutter SDK 3.22. In Flutter SDK version 3.19.0 they have done breaking changes in the RawKeyEvent and replaced it with HardWareKeyBoard. In Flutter SDK version 3.22, MaterialState and its related APIs have been moved out of the Material library and renamed to WidgetState.
So, we kindly request that you upgrade the Flutter SDK version to 3.22.0, or else use the syncfusion_flutter_pdfviewer package version below 24.2.7.
We have also shared the breaking changes documentation below for your reference.
Flutter 3.19.0 breaking change, Migrate RawKeyEvent/RawKeyboard system to KeyEvent/HardwareKeyboard system
Flutter 3.22.0 breaking change, Rename MaterialState to WidgetState
We hope it will help you resolve the issue. If you have any further queries, please get back to us.
@immankumarsync
Thank you very much. I tried version 24.2.4 and it worked 👌🏻.
Bug description
When trying to use the package, this error appears on the console . . and When I click Ctrl on the path, it tells me that the file does not exist
Steps to reproduce
.
Code sample
Code sample
```dart import 'package:flutter/material.dart'; import 'package:syncfusion_flutter_pdfviewer/pdfviewer.dart'; class PdfScreen extends StatelessWidget { const PdfScreen({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('pdf'), ), body: SfPdfViewer.network( 'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf', ), ); } } ```Screenshots or Video
Screenshots / Video demonstration
![image](https://github.com/syncfusion/flutter-widgets/assets/137690747/a04a8dc2-cec8-40eb-83ab-b2b0e7c76a6c) ![image](https://github.com/syncfusion/flutter-widgets/assets/137690747/eb63e916-c954-48ab-8676-8e90e6acb60f)Stack Traces
Stack Traces
```dart trace is not available ```On which target platforms have you observed this bug?
Android
Flutter Doctor output
Doctor output
```console [√] Flutter (Channel stable, 3.16.5, on Microsoft Windows [Version 10.0.19045.3086], locale ar-LY) • Flutter version 3.16.5 on channel stable at C:\src\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 78666c8dc5 (6 months ago), 2023-12-19 16:14:14 -0800 • Engine revision 3f3e560236 • Dart version 3.2.3 • DevTools version 2.28.4 [√] 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\ASUS\AppData\Local\Android\sdk • Platform android-34, build-tools 34.0.0 • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java • Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874) • 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.6.2) • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community • Visual Studio Community 2022 version 17.6.33723.286 • Windows 10 SDK version 10.0.22000.0 [√] Android Studio (version 2023.2) • Android Studio at C:\Program Files\Android\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 17.0.9+0--11185874) [√] VS Code (version 1.89.0) • VS Code at C:\Users\ASUS\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.88.0 [√] Connected device (5 available) • SM A705FN (mobile) • ******** • android-arm64 • Android 11 (API 30) • sdk gphone x86 64 (mobile) • emulator-5554 • android-x64 • Android 13 (API 33) (emulator) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.3086] • Chrome (web) • chrome • web-javascript • Google Chrome 125.0.6422.60 • Edge (web) • edge • web-javascript • Microsoft Edge 124.0.2478.10 [√] Network resources • All expected network resources are available. • No issues found! The Flutter CLI developer tool uses Google Analytics to report usage and diagnostic data along with package dependencies, and crash reporting to send basic crash reports. This data is used to help improve the Dart platform, Flutter framework, and related tools. Telemetry is not sent on the very first run. To disable reporting of telemetry, run this terminal command: flutter --disable-analytics. If you opt out of telemetry, an opt-out event will be sent, and then no further information will be sent. This data is collected in accordance with the Google Privacy Policy (https://policies.google.com/privacy). ```