flutter_qr_reader icon indicating copy to clipboard operation
flutter_qr_reader copied to clipboard

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

Open j-j-gajjar opened this issue 4 years ago • 3 comments
trafficstars

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

j-j-gajjar avatar Apr 24 '21 08:04 j-j-gajjar

Any updates on that?

fernando-s97 avatar May 06 '21 19:05 fernando-s97

Any updates on that?

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

j-j-gajjar avatar May 07 '21 05:05 j-j-gajjar

@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.

fernando-s97 avatar May 07 '21 19:05 fernando-s97