ai_barcode icon indicating copy to clipboard operation
ai_barcode copied to clipboard

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

Open thunderstorm010 opened this issue 3 years ago • 3 comments

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.

thunderstorm010 avatar Jan 05 '22 15:01 thunderstorm010

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...

Flaminiat avatar Mar 01 '22 08:03 Flaminiat

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_barcode_widget.dart Then it will work perfectly!

energy6x6 avatar Jun 16 '22 18:06 energy6x6

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

Flaminiat avatar Jun 21 '22 14:06 Flaminiat