Przeglądaj źródła

Added possibility to choose facing camera on start.

Moved the size listener to plugin side.
flutter-beta
Julian Steenbakker 5 lat temu
rodzic
commit
d10cc603bf
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 16E437C7A3D94250
6 zmienionych plików z 6 dodań i 11 usunięć
  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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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 Wyświetl plik

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


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

+ 1
- 1
lib/src/types/camera_exception.dart Wyświetl plik

@@ -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 Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz