Sfoglia il codice sorgente

Release of v0.2.1

flutter-beta
Julian Steenbakker 5 anni fa
parent
commit
2327953c25
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 16E437C7A3D94250
3 ha cambiato i file con 11 aggiunte e 3 eliminazioni
  1. +3
    -0
      CHANGELOG.md
  2. +7
    -2
      lib/src/qr_code_scanner.dart
  3. +1
    -1
      pubspec.yaml

+ 3
- 0
CHANGELOG.md Vedi File

@@ -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 Vedi File

@@ -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 Vedi File

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



Caricamento…
Annulla
Salva