Showing
2 changed files
with
1 additions
and
5 deletions
| @@ -276,7 +276,6 @@ class MethodChannelMobileScanner extends MobileScannerPlatform { | @@ -276,7 +276,6 @@ class MethodChannelMobileScanner extends MobileScannerPlatform { | ||
| 276 | await methodChannel.invokeMethod<void>('stop'); | 276 | await methodChannel.invokeMethod<void>('stop'); |
| 277 | } | 277 | } |
| 278 | 278 | ||
| 279 | - | ||
| 280 | @override | 279 | @override |
| 281 | Future<void> pause() async { | 280 | Future<void> pause() async { |
| 282 | if (_pausing) { | 281 | if (_pausing) { |
| 1 | import 'dart:async'; | 1 | import 'dart:async'; |
| 2 | -import 'dart:developer'; | ||
| 3 | -import 'dart:html'; | ||
| 4 | import 'dart:js_interop'; | 2 | import 'dart:js_interop'; |
| 5 | import 'dart:ui_web' as ui_web; | 3 | import 'dart:ui_web' as ui_web; |
| 6 | 4 | ||
| @@ -357,11 +355,10 @@ class MobileScannerWeb extends MobileScannerPlatform { | @@ -357,11 +355,10 @@ class MobileScannerWeb extends MobileScannerPlatform { | ||
| 357 | } | 355 | } |
| 358 | } | 356 | } |
| 359 | 357 | ||
| 360 | - | ||
| 361 | @override | 358 | @override |
| 362 | Future<void> pause() async { | 359 | Future<void> pause() async { |
| 363 | _barcodesSubscription?.pause(); | 360 | _barcodesSubscription?.pause(); |
| 364 | - await _barcodeReader.pause(); | 361 | + await _barcodeReader?.pause(); |
| 365 | } | 362 | } |
| 366 | 363 | ||
| 367 | @override | 364 | @override |
-
Please register or login to post a comment