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
2022-02-23 13:24:36 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
eba377f07bdb5c7e07f11cf141ae08e8cc056fe7
eba377f0
1 parent
f1491923
style: flutter format + linter
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
lib/src/mobile_scanner_controller.dart
lib/src/mobile_scanner_controller.dart
View file @
eba377f
...
...
@@ -106,7 +106,6 @@ class MobileScannerController {
/// Start barcode scanning. This will first check if the required permissions
/// are set.
Future
<
void
>
start
()
async
{
ensure
(
'startAsync'
);
// setAnalyzeMode(AnalyzeMode.barcode.index);
...
...
@@ -136,8 +135,8 @@ class MobileScannerController {
// Start the camera with arguments
Map
<
String
,
dynamic
>?
startResult
=
{};
try
{
startResult
=
await
methodChannel
.
invokeMapMethod
<
String
,
dynamic
>(
'start'
,
arguments
);
startResult
=
await
methodChannel
.
invokeMapMethod
<
String
,
dynamic
>(
'start'
,
arguments
);
}
on
PlatformException
catch
(
error
)
{
debugPrint
(
'
${error.code}
:
${error.message}
'
);
// setAnalyzeMode(AnalyzeMode.none.index);
...
...
@@ -191,7 +190,8 @@ class MobileScannerController {
try
{
await
methodChannel
.
invokeMethod
(
'stop'
);
}
on
PlatformException
catch
(
error
)
{
debugPrint
(
'
${error.code}
: camera is stopped! Please start before switching camera.'
);
debugPrint
(
'
${error.code}
: camera is stopped! Please start before switching camera.'
);
return
;
}
facing
=
...
...
Please
register
or
login
to post a comment