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

The method 'QrcodeReaderView' isn't defined for the type '_ScanQRState' (class_Name). #60

Open
j-j-gajjar opened this issue Apr 24, 2021 · 3 comments

Comments

@j-j-gajjar
Copy link

j-j-gajjar commented Apr 24, 2021

image

  • [line 5] Unused import: 'package:flutter_qr_reader/flutter_qr_reader.dart'. Try removing the import directive.

  • [line 15] The name 'QrcodeReaderViewState' isn't a type so it can't be used as a type argument. Try correcting the name to an existing type, or defining a type named 'QrcodeReaderViewState'

  • [line 30] The method 'QrcodeReaderView' isn't defined for the type '_ScanQRState'. Try correcting the name to the name of an existing method, or defining a method named 'QrcodeReaderView'

in pubspec.yaml
flutter_qr_reader: ^1.0.5

@fernando-s97
Copy link

Any updates on that?

@j-j-gajjar
Copy link
Author

Any updates on that?

no 😔
if you find any solution, please share it with me

@fernando-s97
Copy link

fernando-s97 commented May 7, 2021

@j-j-gajjar For what I've seen, this widget was moved to the example project of the lib (with null safety support).

So I've literally copied the file "qrcode_reader_view.dart" and the /assets from the example project to my project. You can do the same...

Later on I'll migrate to another package since I don't feel very confident with this one for production apps.

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