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
Daniel Newton
2022-03-23 14:24:54 +1300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
db05d6f5a4426f9ba28ad9cf1148428ee9e39417
db05d6f5
1 parent
46608901
add some null handling
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
lib/mobile_scanner_web_plugin.dart
lib/mobile_scanner_web_plugin.dart
View file @
db05d6f
...
...
@@ -146,7 +146,7 @@ class MobileScannerWebPlugin {
'torchable'
:
hasFlash
};
}
catch
(
e
)
{
throw
PlatformException
(
code:
'MobileScannerWeb'
,
message:
e
.
toString
()
);
throw
PlatformException
(
code:
'MobileScannerWeb'
,
message:
'
$e
'
);
}
}
...
...
@@ -166,7 +166,7 @@ class MobileScannerWebPlugin {
Future
<
void
>
cancel
()
async
{
try
{
// Stop the camera stream
_localStream
!
.
getTracks
().
forEach
((
track
)
{
_localStream
?
.
getTracks
().
forEach
((
track
)
{
if
(
track
.
readyState
==
'live'
)
{
track
.
stop
();
}
...
...
Please
register
or
login
to post a comment