| @@ -1,3 +1,6 @@ | |||||
| ## 0.2.1 | |||||
| * Fixed critical bug where scanner wouldn't open when no scan overlay was configured. | |||||
| ## 0.2.0 | ## 0.2.0 | ||||
| #### Breaking change | #### Breaking change | ||||
| * The plugin now returns Barcode object instead of QR String. This object includes the type of code, the code itself and on Android devices the raw bytes. (#63) | * The plugin now returns Barcode object instead of QR String. This object includes the type of code, the code itself and on Android devices the raw bytes. (#63) | ||||
| @@ -159,8 +159,13 @@ class _QRViewState extends State<QRView> { | |||||
| return; | return; | ||||
| } | } | ||||
| widget.onQRViewCreated(QRViewController._( | |||||
| id, widget.key, (widget.overlay as QrScannerOverlayShape).cutOutSize)); | |||||
| // We pass the cutout size so that the scanner respects the scan area. | |||||
| var cutOutSize = 0.0; | |||||
| if (widget.overlay != null) { | |||||
| cutOutSize = (widget.overlay as QrScannerOverlayShape).cutOutSize; | |||||
| } | |||||
| widget.onQRViewCreated(QRViewController._(id, widget.key, cutOutSize)); | |||||
| } | } | ||||
| } | } | ||||
| @@ -1,6 +1,6 @@ | |||||
| name: qr_code_scanner | name: qr_code_scanner | ||||
| description: QR code scanner that can be embedded inside flutter. It uses zxing in Android and MTBBarcode scanner in iOS. | description: QR code scanner that can be embedded inside flutter. It uses zxing in Android and MTBBarcode scanner in iOS. | ||||
| version: 0.2.0 | |||||
| version: 0.2.1 | |||||
| homepage: https://juliuscanute.com | homepage: https://juliuscanute.com | ||||
| repository: https://github.com/juliuscanute/qr_code_scanner | repository: https://github.com/juliuscanute/qr_code_scanner | ||||