瀏覽代碼

Added possibility to choose facing camera on start.

Moved the size listener to plugin side.
flutter-beta
Julian Steenbakker 5 年之前
父節點
當前提交
d10cc603bf
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 16E437C7A3D94250
共有 6 個文件被更改,包括 6 次插入11 次删除
  1. +0
    -1
      example/lib/main.dart
  2. +1
    -1
      lib/src/types/barcode.dart
  3. +2
    -6
      lib/src/types/barcode_format.dart
  4. +1
    -1
      lib/src/types/camera.dart
  5. +1
    -1
      lib/src/types/camera_exception.dart
  6. +1
    -1
      lib/src/types/features.dart

+ 0
- 1
example/lib/main.dart 查看文件

@@ -16,7 +16,6 @@ class QRViewExample extends StatefulWidget {
} }


class _QRViewExampleState extends State<QRViewExample> { class _QRViewExampleState extends State<QRViewExample> {

Barcode result; Barcode result;
QRViewController controller; QRViewController controller;
final GlobalKey qrKey = GlobalKey(debugLabel: 'QR'); final GlobalKey qrKey = GlobalKey(debugLabel: 'QR');


+ 1
- 1
lib/src/types/barcode.dart 查看文件

@@ -13,4 +13,4 @@ class Barcode {


/// Raw bytes are only supported by Android. /// Raw bytes are only supported by Android.
final List<int> rawBytes; final List<int> rawBytes;
}
}

+ 2
- 6
lib/src/types/barcode_format.dart 查看文件

@@ -56,13 +56,10 @@ extension BarcodeTypesExtension on BarcodeFormat {
return index; return index;
} }


BarcodeFormat fromString(String format) {

}
BarcodeFormat fromString(String format) {}


String get formatName { String get formatName {
switch (this) { switch (this) {

case BarcodeFormat.aztec: case BarcodeFormat.aztec:
return 'AZTEC'; return 'AZTEC';
break; break;
@@ -117,5 +114,4 @@ extension BarcodeTypesExtension on BarcodeFormat {
} }
return 'NOT_VALID'; return 'NOT_VALID';
} }

}
}

+ 1
- 1
lib/src/types/camera.dart 查看文件

@@ -4,4 +4,4 @@ enum CameraFacing {


/// Shows front facing camera. /// Shows front facing camera.
front front
}
}

+ 1
- 1
lib/src/types/camera_exception.dart 查看文件

@@ -11,4 +11,4 @@ class CameraException implements Exception {


@override @override
String toString() => 'CameraException($code, $description)'; String toString() => 'CameraException($code, $description)';
}
}

+ 1
- 1
lib/src/types/features.dart 查看文件

@@ -10,4 +10,4 @@ class SystemFeatures {
final bool hasFlash; final bool hasFlash;
final bool hasFrontCamera; final bool hasFrontCamera;
final bool hasBackCamera; final bool hasBackCamera;
}
}

Loading…
取消
儲存