Compile errors with PdfViewer 20.2.48-beta:Unit8List isn't a type..

../../Flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_pdfviewer-20.2.48-beta/lib/src/common/pdf_provider.dart:140:3: Error: 'Uint8List' isn't a type.

  Uint8List? _documentBytes;

  ^^^^^^^^^


For some reason, after I added the package to pubspec.yaml, pub get, and then build, getting 5 to 6 compile errors related to Uint8List. Is there anything we need to add to add dart or something to the path. All other code I have works fine


2 Replies

DR Deepika Ravi Syncfusion Team September 8, 2022 07:08 AM UTC

Hi Nagendra,


kindly upgrade to the latest version of Flutter SDK to get the issue resolved. Please try this and let us know if the issue is resolved or not.

Flutter SDK setup link for the latest version: https://docs.flutter.dev/get-started/install/windows#get-the-flutter-sdk


Regards,

Deepika Ravi



NA Nagendra September 8, 2022 04:16 PM UTC

Thanks for the reply. Yes, it worked after upgrading to the latest flutter, regards


Loader.
Up arrow icon