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 16:34:28 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8be461cdf4c9d66705ba16d790c09ba2db8f4b7c
8be461cd
1 parent
2ef4ccdf
format barcode reader base
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
lib/src/web/barcode_reader.dart
lib/src/web/barcode_reader.dart
View file @
8be461c
...
...
@@ -42,7 +42,8 @@ abstract class BarcodeReader {
final
Completer
<
void
>
completer
=
Completer
();
final
HTMLScriptElement
script
=
(
document
.
createElement
(
'script'
)
as
HTMLScriptElement
)
final
HTMLScriptElement
script
=
(
document
.
createElement
(
'script'
)
as
HTMLScriptElement
)
..
id
=
scriptId
..
async
=
true
..
defer
=
false
...
...
@@ -65,7 +66,8 @@ abstract class BarcodeReader {
const
MobileScannerException
(
errorCode:
MobileScannerErrorCode
.
genericError
,
errorDetails:
MobileScannerErrorDetails
(
message:
'Could not load the BarcodeReader script due to a network error.'
,
message:
'Could not load the BarcodeReader script due to a network error.'
,
),
),
);
...
...
@@ -81,7 +83,10 @@ abstract class BarcodeReader {
///
/// The [options] are used to configure the barcode reader.
/// The [containerElement] will become the parent of the video output element.
Future
<
void
>
start
(
StartOptions
options
,
{
required
HTMLElement
containerElement
})
{
Future
<
void
>
start
(
StartOptions
options
,
{
required
HTMLElement
containerElement
,
})
{
throw
UnimplementedError
(
'start() has not been implemented.'
);
}
...
...
Please
register
or
login
to post a comment