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

Bug: QRImage disappears on eyeball customisation #179

Open
ShimronAlakkal opened this issue Jun 5, 2022 · 1 comment
Open

Bug: QRImage disappears on eyeball customisation #179

ShimronAlakkal opened this issue Jun 5, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ShimronAlakkal
Copy link

Describe the bug
When using the eyeStyleing, the existing qr image disappears.

Code

 Center(
              child: QrImage(
                  gapless: false,
                  semanticsLabel: 'Proud Zellow User',
                  data: baseUrl + FirebaseAuth.instance.currentUser!.uid,
                  dataModuleStyle: QrDataModuleStyle(
                    dataModuleShape: QrDataModuleShape.circle,
                    color: ColorPalette().secondaryTextColor,
                  ),
                  eyeStyle: QrEyeStyle(eyeShape: QrEyeShape.circle),
                  size: MediaQuery.of(context).size.height * 0.35),
            ),

Error on debug

The following _CastError was thrown during paint():
Null check operator used on a null value

The relevant error-causing widget was
QrImage

The following RenderObject was being processed when the exception was fired: RenderCustomPaint#c2ad7
RenderObject: RenderCustomPaint#c2ad7
    parentData: offset=Offset(10.0, 10.0) (can use size)
    constraints: BoxConstraints(w=238.1, h=238.1)
    size: Size(238.1, 238.1)
    painter: QrPainter#0a4bb()
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

3 participants