Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on web (Dart 3.0.0 & Flutter 3.10.2) #83

Open
Abolfazlnezami2000 opened this issue Jun 15, 2023 · 1 comment
Open

Error on web (Dart 3.0.0 & Flutter 3.10.2) #83

Abolfazlnezami2000 opened this issue Jun 15, 2023 · 1 comment

Comments

@Abolfazlnezami2000
Copy link

image
image

@shenyuyang
Copy link

[Problem Analysis]
I have encountered this problem as well when running the project in a web environment. After inspecting the source code, I found the following issues:

The library “ai_barcode” is referencing another library called “ai_barcode_web”.
However, “ai_barcode_web” hasn’t been updated for a while and is incompatible with the method calls of the “qr” library it depends on.
Eventually, I realized that “ai_barcode” doesn’t actually need to reference “ai_barcode_web”. Therefore, I forked the source code and removed the problematic “ai_barcode_web” library.

[Final Solution]
To resolve this, you can comment out the original “ai_barcode” in the dependency file “pubspec.yaml” and add my forked library instead.

  #ai_barcode: 3.2.4
  ai_barcode:
    git:
      url: https://github.com/shenyuyang/ai_barcode.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants