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-08 12:40:51 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c2b57f25058f0080bc2879e90da3f456a9be4d72
c2b57f25
1 parent
d410ef09
let MacOS return a list of barcodes to align with iOS/Android
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
macos/Classes/MobileScannerPlugin.swift
macos/Classes/MobileScannerPlugin.swift
View file @
c2b57f2
...
...
@@ -138,7 +138,15 @@ public class MobileScannerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler,
}
DispatchQueue
.
main
.
async
{
self
?
.
sink
?([
"name"
:
"barcode"
,
"data"
:
[
"payload"
:
barcode
.
payloadStringValue
,
"symbology"
:
barcode
.
symbology
.
toInt
as
Any
?]]
as
[
String
:
Any
])
self
?
.
sink
?([
"name"
:
"barcode"
,
"data"
:
[
[
"payload"
:
barcode
.
payloadStringValue
??
""
,
"symbology"
:
barcode
.
symbology
.
toInt
??
-
1
,
],
],
])
}
// if barcodeType == "QR" {
// let image = CIImage(image: source)
...
...
Please
register
or
login
to post a comment