Quellcode durchsuchen

Removed overlay from controller

flutter-beta
Julian Steenbakker vor 5 Jahren
Ursprung
Commit
159bb3cc82
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden GPG-Schlüssel-ID: 16E437C7A3D94250
1 geänderte Dateien mit 5 neuen und 6 gelöschten Zeilen
  1. +5
    -6
      lib/src/qr_code_scanner.dart

+ 5
- 6
lib/src/qr_code_scanner.dart Datei anzeigen

@@ -124,9 +124,9 @@ class _QRViewState extends State<QRView> {
_channel = MethodChannel('net.touchcapture.qr.flutterqr/qrview_$id');

// Start scan after creation of the view
final controller = QRViewController._(
_channel, widget.key, widget.overlay, widget.onPermissionSet)
.._startScan(widget.key, widget.overlay, widget.formatsAllowed);
final controller =
QRViewController._(_channel, widget.key, widget.onPermissionSet)
.._startScan(widget.key, widget.overlay, widget.formatsAllowed);

// Initialize the controller for controlling the QRView
if (widget.onQRViewCreated != null) {
@@ -150,7 +150,7 @@ class _QrCameraSettings {
}

class QRViewController {
QRViewController._(MethodChannel channel, GlobalKey qrKey, QrScannerOverlayShape overlasdfay,
QRViewController._(MethodChannel channel, GlobalKey qrKey,
PermissionSetCallback onPermissionSet)
: _channel = channel {
_channel.setMethodCallHandler((call) async {
@@ -205,8 +205,7 @@ class QRViewController {
List<BarcodeFormat> barcodeFormats) async {
// We need to update the dimension before the scan is started.
try {
await QRViewController.updateDimensions(key, _channel,
overlay: overlay);
await QRViewController.updateDimensions(key, _channel, overlay: overlay);
return await _channel.invokeMethod(
'startScan', barcodeFormats?.map((e) => e.asInt())?.toList() ?? []);
} on PlatformException catch (e) {


Laden…
Abbrechen
Speichern