Parcourir la source

Added possibility to choose facing camera on start.

Moved the size listener to plugin side.
flutter-beta
Julian Steenbakker il y a 5 ans
Parent
révision
d10cc603bf
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 16E437C7A3D94250
6 fichiers modifiés avec 6 ajouts et 11 suppressions
  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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

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

/// Shows front facing camera.
front
}
}

+ 1
- 1
lib/src/types/camera_exception.dart Voir le fichier

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

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

+ 1
- 1
lib/src/types/features.dart Voir le fichier

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

Chargement…
Annuler
Enregistrer