khoren93 / flutter_zxing

Flutter plugin for scanning and generating QR codes using the ZXing library, supporting Android, iOS, and desktop platforms
https://pub.dev/packages/flutter_zxing
MIT License
92 stars 52 forks source link

Error: Type 'Uint8List' not found. #33

Closed rifkyfu32 closed 1 year ago

rifkyfu32 commented 1 year ago
/C:/android/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_zxing-0.8.0/lib/src/logic/barcode_reader.dart:76:3: Error: Type 'Uint8List' not found.
  Uint8List bytes, {
  ^^^^^^^^^
/C:/android/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_zxing-0.8.0/lib/src/logic/barcodes_reader.dart:76:3: Error: Type 'Uint8List' not found.
  Uint8List bytes, {

  ^^^^^^^^^
/C:/android/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_zxing-0.8.0/lib/src/logic/barcode_reader.dart:30:9: Error: 'Uint8List' isn't a type.
  final Uint8List imageBytes = await path.readAsBytes();
        ^^^^^^^^^
/C:/android/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_zxing-0.8.0/lib/src/logic/barcode_reader.dart:56:9: Error: 'Uint8List' isn't a type.
  final Uint8List imageBytes =

        ^^^^^^^^^
/C:/android/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_zxing-0.8.0/lib/src/logic/barcode_reader.dart:76:3: Error: 'Uint8List' isn't a type.

  Uint8List bytes, {
  ^^^^^^^^^
/C:/android/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_zxing-0.8.0/lib/src/logic/barcodes_reader.dart:30:9: Error: 'Uint8List' isn't a type.
  final Uint8List imageBytes = await path.readAsBytes();

        ^^^^^^^^^
/C:/android/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_zxing-0.8.0/lib/src/logic/barcodes_reader.dart:56:9: Error: 'Uint8List' isn't a type.

  final Uint8List imageBytes =
        ^^^^^^^^^
/C:/android/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_zxing-0.8.0/lib/src/logic/barcodes_reader.dart:76:3: Error: 'Uint8List' isn't a type.
  Uint8List bytes, {
  ^^^^^^^^^
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.0.5, on Microsoft Windows [Version 10.0.22000.856], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[√] Chrome - develop for the web
[X] Visual Studio - develop for Windows
    X Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components
[!] Android Studio (not installed)
[√] VS Code (version 1.71.2)
[√] Connected device (4 available)
[√] HTTP Host Availability
lucasnsa commented 1 year ago

Hi, @rifkyfu32

32 fix this issue.

upgrade lib version to 0.8.1

khoren93 commented 1 year ago

Closing for now as this is already fixed.