Use new camera selector for android to improve landscape recognition.
Showing
1 changed file
with
1 additions
and
0 deletions
| @@ -18,6 +18,7 @@ class _BarcodeScannerPicklistState extends State<BarcodeScannerPicklist> | @@ -18,6 +18,7 @@ class _BarcodeScannerPicklistState extends State<BarcodeScannerPicklist> | ||
| 18 | with WidgetsBindingObserver { | 18 | with WidgetsBindingObserver { |
| 19 | final _mobileScannerController = MobileScannerController( | 19 | final _mobileScannerController = MobileScannerController( |
| 20 | autoStart: false, | 20 | autoStart: false, |
| 21 | + useNewCameraSelector: true, | ||
| 21 | ); | 22 | ); |
| 22 | StreamSubscription<Object?>? _barcodesSubscription; | 23 | StreamSubscription<Object?>? _barcodesSubscription; |
| 23 | 24 |
-
Please register or login to post a comment