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
Rqmco
2023-03-15 16:28:41 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2023-03-15 16:28:41 +0100
Commit
4f5362dee17d80ad5cf9db65d5a79f56522e57ff
4f5362de
1 parent
e9645bb2
Fix: Fixes Issue #531
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
lib/src/mobile_scanner.dart
lib/src/mobile_scanner.dart
View file @
4f5362d
...
...
@@ -116,6 +116,10 @@ class _MobileScannerState extends State<MobileScanner>
await
Future
.
delayed
(
const
Duration
(
seconds:
1
,
milliseconds:
500
));
}
_barcodesSubscription
??=
_controller
.
barcodes
.
listen
(
widget
.
onDetect
,
);
if
(!
_controller
.
autoStart
)
{
debugPrint
(
'mobile_scanner: not starting automatically because autoStart is set to false in the controller.'
,
...
...
@@ -123,10 +127,6 @@ class _MobileScannerState extends State<MobileScanner>
return
;
}
_barcodesSubscription
??=
_controller
.
barcodes
.
listen
(
widget
.
onDetect
,
);
_controller
.
start
().
then
((
arguments
)
{
// ignore: deprecated_member_use_from_same_package
widget
.
onStart
?.
call
(
arguments
);
...
...
Please
register
or
login
to post a comment