Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
mobile_scanner
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Navaron Bracke
2023-12-05 14:09:15 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2d3e70a7dfdefedda2fa12558ec2935e3f3b3a8d
2d3e70a7
1 parent
50438b2a
add isScanning to the barcode scanner web interface & remove hasTorch
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
lib/src/web/barcode_reader.dart
lib/src/web/barcode_reader.dart
View file @
2d3e70a
...
...
@@ -3,7 +3,6 @@ import 'dart:js_interop';
import
'package:js/js.dart'
;
import
'package:mobile_scanner/src/enums/mobile_scanner_error_code.dart'
;
import
'package:mobile_scanner/src/enums/torch_state.dart'
;
import
'package:mobile_scanner/src/mobile_scanner_exception.dart'
;
import
'package:mobile_scanner/src/objects/barcode_capture.dart'
;
import
'package:mobile_scanner/src/objects/start_options.dart'
;
...
...
@@ -13,6 +12,9 @@ import 'package:web/web.dart';
abstract
class
BarcodeReader
{
const
BarcodeReader
();
/// Whether the scanner is currently scanning for barcodes.
bool
get
isScanning
;
/// The id for the script tag that loads the barcode library.
///
/// If a script tag with this id already exists,
...
...
@@ -75,11 +77,6 @@ abstract class BarcodeReader {
await
completer
.
future
;
}
/// Set the flashlight state for the device.
Future
<
void
>
setTorchState
(
TorchState
torchState
)
{
throw
UnimplementedError
(
'setTorchState() has not been implemented.'
);
}
/// Start the barcode reader and initialize the video stream.
///
/// The [options] are used to configure the barcode reader.
...
...
Please
register
or
login
to post a comment