Ver código fonte

Added possibility to choose facing camera on start.

Moved the size listener to plugin side.
flutter-beta
Julian Steenbakker 5 anos atrás
pai
commit
d10cc603bf
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: 16E437C7A3D94250
6 arquivos alterados com 6 adições e 11 exclusões
  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 Ver arquivo

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

class _QRViewExampleState extends State<QRViewExample> {

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


+ 1
- 1
lib/src/types/barcode.dart Ver arquivo

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

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

+ 2
- 6
lib/src/types/barcode_format.dart Ver arquivo

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

BarcodeFormat fromString(String format) {

}
BarcodeFormat fromString(String format) {}

String get formatName {
switch (this) {

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

}
}

+ 1
- 1
lib/src/types/camera.dart Ver arquivo

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

/// Shows front facing camera.
front
}
}

+ 1
- 1
lib/src/types/camera_exception.dart Ver arquivo

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

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

+ 1
- 1
lib/src/types/features.dart Ver arquivo

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

Carregando…
Cancelar
Salvar