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-11-27 15:47:31 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2455c6c6b0105507a35ab62432da79fd140ca429
2455c6c6
1 parent
efc05b44
fix check for permission state
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
android/src/main/kotlin/dev/steenbakker/mobile_scanner/MobileScannerPermissions.kt
lib/src/mobile_scanner_controller.dart
android/src/main/kotlin/dev/steenbakker/mobile_scanner/MobileScannerPermissions.kt
View file @
2455c6c
...
...
@@ -45,7 +45,7 @@ class MobileScannerPermissions {
return if (hasPermission) {
1
} else {
0
2
}
}
...
...
lib/src/mobile_scanner_controller.dart
View file @
2455c6c
...
...
@@ -189,8 +189,9 @@ class MobileScannerController {
final
MobileScannerState
state
;
try
{
state
=
MobileScannerState
.
values
[
await
_methodChannel
.
invokeMethod
(
'state'
)
as
int
?
??
0
];
state
=
MobileScannerState
.
fromRawValue
(
await
_methodChannel
.
invokeMethod
(
'state'
)
as
int
?
??
0
,
);
}
on
PlatformException
catch
(
error
)
{
isStarting
=
false
;
...
...
Please
register
or
login
to post a comment