浏览代码

refactor: removed unused _features and made _hasPermissions non nullable

flutter-beta
Julian Steenbakker 5 年前
父节点
当前提交
b6978a5ba2
找不到此签名对应的密钥 GPG 密钥 ID: 16E437C7A3D94250
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. +2
    -5
      lib/src/qr_code_scanner.dart

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

@@ -214,11 +214,8 @@ class QRViewController {

Stream<Barcode> get scannedDataStream => _scanUpdateController.stream;

SystemFeatures? _features;
bool? _hasPermissions;

SystemFeatures? get systemFeatures => _features;
bool? get hasPermissions => _hasPermissions;
bool _hasPermissions = false;
bool get hasPermissions => _hasPermissions;

/// Starts the barcode scanner
Future<void> _startScan(GlobalKey key, QrScannerOverlayShape? overlay,


正在加载...
取消
保存