瀏覽代碼

Release of v0.2.1

flutter-beta
Julian Steenbakker 5 年之前
父節點
當前提交
2327953c25
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 16E437C7A3D94250
共有 3 個文件被更改,包括 11 次插入3 次删除
  1. +3
    -0
      CHANGELOG.md
  2. +7
    -2
      lib/src/qr_code_scanner.dart
  3. +1
    -1
      pubspec.yaml

+ 3
- 0
CHANGELOG.md 查看文件

@@ -1,3 +1,6 @@
## 0.2.1
* Fixed critical bug where scanner wouldn't open when no scan overlay was configured.

## 0.2.0
#### 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)


+ 7
- 2
lib/src/qr_code_scanner.dart 查看文件

@@ -159,8 +159,13 @@ class _QRViewState extends State<QRView> {
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
- 1
pubspec.yaml 查看文件

@@ -1,6 +1,6 @@
name: qr_code_scanner
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
repository: https://github.com/juliuscanute/qr_code_scanner



Loading…
取消
儲存