Showing
1 changed file
with
2 additions
and
1 deletions
| @@ -81,8 +81,9 @@ class MobileScannerWebPlugin { | @@ -81,8 +81,9 @@ class MobileScannerWebPlugin { | ||
| 81 | vidDiv.children = [video]; | 81 | vidDiv.children = [video]; |
| 82 | 82 | ||
| 83 | var cameraFacing = CameraFacing.front; | 83 | var cameraFacing = CameraFacing.front; |
| 84 | - if (arguments.containsKey('facing')) | 84 | + if (arguments.containsKey('facing')) { |
| 85 | cameraFacing = CameraFacing.values[arguments['facing']]; | 85 | cameraFacing = CameraFacing.values[arguments['facing']]; |
| 86 | + } | ||
| 86 | 87 | ||
| 87 | // See https://github.com/flutter/flutter/issues/41563 | 88 | // See https://github.com/flutter/flutter/issues/41563 |
| 88 | // ignore: UNDEFINED_PREFIXED_NAME | 89 | // ignore: UNDEFINED_PREFIXED_NAME |
-
Please register or login to post a comment