Showing
1 changed file
with
4 additions
and
0 deletions
| 1 | import 'dart:async'; | 1 | import 'dart:async'; |
| 2 | import 'dart:js_interop'; | 2 | import 'dart:js_interop'; |
| 3 | +import 'dart:ui'; | ||
| 3 | 4 | ||
| 4 | import 'package:js/js.dart'; | 5 | import 'package:js/js.dart'; |
| 5 | import 'package:mobile_scanner/src/enums/mobile_scanner_error_code.dart'; | 6 | import 'package:mobile_scanner/src/enums/mobile_scanner_error_code.dart'; |
| @@ -15,6 +16,9 @@ abstract class BarcodeReader { | @@ -15,6 +16,9 @@ abstract class BarcodeReader { | ||
| 15 | /// Whether the scanner is currently scanning for barcodes. | 16 | /// Whether the scanner is currently scanning for barcodes. |
| 16 | bool get isScanning; | 17 | bool get isScanning; |
| 17 | 18 | ||
| 19 | + /// Get the size of the output of the video stream. | ||
| 20 | + Size get videoSize; | ||
| 21 | + | ||
| 18 | /// The id for the script tag that loads the barcode library. | 22 | /// The id for the script tag that loads the barcode library. |
| 19 | /// | 23 | /// |
| 20 | /// If a script tag with this id already exists, | 24 | /// If a script tag with this id already exists, |
-
Please register or login to post a comment