Skip to content

Commit

Permalink
bug: fixes crash when no formats are given on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
juliansteenbakker committed Mar 4, 2022
1 parent 124586f commit 6ef8170
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/lib/barcode_scanner_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class _BarcodeScannerWithControllerState
String? barcode;

MobileScannerController controller = MobileScannerController(
torchEnabled: true, formats: [BarcodeFormat.qrCode]
torchEnabled: true,
// formats: [BarcodeFormat.qrCode]
// facing: CameraFacing.front,
);

Expand Down

0 comments on commit 6ef8170

Please sign in to comment.