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

Failed to build #187

Open
excode opened this issue Aug 27, 2022 · 3 comments
Open

Failed to build #187

excode opened this issue Aug 27, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@excode
Copy link

excode commented Aug 27, 2022

Screenshot 2022-08-27 at 11 23 30 PM

    /var/folders/f1/8q9txtbx45j5yjbfwx7vcfmm0000gn/T/flutter_tools.ku3Mtb/flutter_ios_build_temp_dirLnOtSR/temporary_xcresult_bundle

../../../.pub-cache/hosted/pub.dartlang.org/qr_flutter-4.0.0/lib/src/qr_painter.dart:213:28: Error: The method 'isDark' isn't defined for the class 'QrCode'.
 - 'QrCode' is from 'package:qr/src/qr_code.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/qr-3.0.1/lib/src/qr_code.dart').
Try correcting the name to the name of an existing method, or defining a method named 'isDark'.
        final paint = _qr!.isDark(y, x) ? pixelPaint : emptyPixelPaint;
                           ^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/qr_flutter-4.0.0/lib/src/qr_painter.dart:261:17: Error: The method 'isDark' isn't defined for the class 'QrCode'.
 - 'QrCode' is from 'package:qr/src/qr_code.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/qr-3.0.1/lib/src/qr_code.dart').
Try correcting the name to the name of an existing method, or defining a method named 'isDark'.
    return _qr!.isDark(y + 1, x);
                ^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/qr_flutter-4.0.0/lib/src/qr_painter.dart:266:17: Error: The method 'isDark' isn't defined for the class 'QrCode'.
 - 'QrCode' is from 'package:qr/src/qr_code.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/qr-3.0.1/lib/src/qr_code.dart').
Try correcting the name to the name of an existing method, or defining a method named 'isDark'.
    return _qr!.isDark(y, x + 1);
                ^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/qr_flutter-4.0.0/lib/src/validator.dart:32:14: Error: The method 'make' isn't defined for the class 'QrCode'.
 - 'QrCode' is from 'package:qr/src/qr_code.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/qr-3.0.1/lib/src/qr_code.dart').
Try correcting the name to the name of an existing method, or defining a method named 'make'.
      qrCode.make();
             ^^^^
Failed to package /Users/kalamazad/Documents/Apps/mpa.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order

Result bundle written to path:
    /var/folders/f1/8q9txtbx45j5yjbfwx7vcfmm0000gn/T/flutter_tools.ku3Mtb/flutter_ios_build_temp_dirLnOtSR/temporary_xcresult_bundle

Failed to build

@excode excode added the bug Something isn't working label Aug 27, 2022
@excode
Copy link
Author

excode commented Aug 27, 2022

Any idea how to resolve the issue.

Stuck for 2 days :-( Flutter version 3.1.0

@fernan542
Copy link

Try to replace your pubspec.yaml dependency with this:

  qr_flutter:
    git: 
      url: https://github.com/theyakka/qr.flutter.git
      ref: master

Also keep in mind that it has a breaking changes where the previous QrImage widget is replaced by QrImageView.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants