Closed purushottamyadavbattula closed 4 years ago
You need a white or light color margin around the QRCode in order to make it readable. Otherwise the reader can't find the beginning of the matrix.
Still not working I added the margin
You inversed the colors? The readers expect the small squares in the 3 corners to be filled black. You can't change the colors. https://en.wikipedia.org/wiki/QR_code
No, I am not inversing any colors,
Container( color: Colors.black, Container( decoration: BoxDecoration( border: Border.all(color: Colors.white), ), child: BarcodeWidget( color: Colors.white, height: 100, width: 100, barcode: Barcode.qrCode(), data: 'https"//csedata-cdb17.firebaseapp.com', ), ), ),
Wow working now, I think I have to inverse and nullify the background colors, Thank for the article and quick response (appreciated)
Container( color:black,Container( decoration: BoxDecoration( border: Border.all(color: Colors.white), ), child: Container( color: Colors.white, child: BarcodeWidget( color: Colors.black, height: 100, width: 100, barcode: Barcode.qrCode(), data: link, //'https"//csedata-cdb17.firebaseapp.com', ), ), ),),
Can you post the code for the scan? I can only see the code for generation but not scanning :(
@Leoudayan This plugin can only create barcodes, not scan them.
can't scan QR when kept into a card with background color ?? (Flutter)