pdliuw / ai_barcode

Barcode generation,Barcode scanning,qrcode,qrcode generation,qrcode creator,flutter barcode,flutter qrcode,support android iOS web platform
BSD 3-Clause "New" or "Revised" License
125 stars 82 forks source link

Height/Width of Platform View type: [webcamVideoElement[#0723a]] may not be set. Defaulting to `width: 100%`. #50

Open thunderstorm010 opened 2 years ago

thunderstorm010 commented 2 years ago

Height of Platform View type: [webcamVideoElement[#0723a]] may not be set. Defaulting to height: 100%. Set style.height to any appropriate value to stop this message. Width of Platform View type: [webcamVideoElement[#0723a]] may not be set. Defaulting to width: 100%. Set style.width to any appropriate value to stop this message.

Putting it in a SizedBox does not help.

Flaminiat commented 2 years ago

Getting the same warning in web, any idea where to set height and width? Putting the relevant widget in a Container and setting size doesn't help either...

energy6x6 commented 2 years ago

I think, you have a different problem: QR code scanner can't give result in web app from package ai_barcode-3.2.1. Am I right?

If you want to fix this problem - you should uncomment 71-74 rows in source _ai_barcode-3.2.1/src/ai_barcodewidget.dart Then it will work perfectly!

Flaminiat commented 2 years ago

thank you for your reply, will definitely have a try!