Explorar el Código

bug: fixed cast

flutter-beta
Julian Steenbakker hace 5 años
padre
commit
a722df9415
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 16E437C7A3D94250
Se han modificado 1 ficheros con 5 adiciones y 3 borrados
  1. +5
    -3
      lib/src/qr_code_scanner.dart

+ 5
- 3
lib/src/qr_code_scanner.dart Ver fichero

@@ -304,9 +304,11 @@ class QRViewController {
Future<SystemFeatures> getSystemFeatures() async {
try {
var features =
await (_channel.invokeMapMethod<String, dynamic>('getSystemFeatures')
as FutureOr<Map<String, dynamic>>);
return SystemFeatures.fromJson(features);
await _channel.invokeMapMethod<String, dynamic>('getSystemFeatures');
if (features != null) {
return SystemFeatures.fromJson(features);
}
throw CameraException('Error', 'Could not get system features');
} on PlatformException catch (e) {
throw CameraException(e.code, e.message);
}


Cargando…
Cancelar
Guardar