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
Julian Steenbakker
2023-03-17 16:15:18 +0100
Browse Files
Options
Browse Files
Download
Plain Diff
Committed by
GitHub
2023-03-17 16:15:18 +0100
Commit
fc8917d061904955d48811789869ee398915050a
fc8917d0
2 parents
100594fd
4f5362de
Merge pull request #541 from Rqmco/master
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 @
fc8917d
...
...
@@ -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