Bug: QRImage disappears on eyeball customisation
ShimronAlakkal opened this issue · comments
Shimron commented
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()