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
2024-09-05 13:13:44 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6dea0d30d598547f6a63af4eb79c7fa3c26844f7
6dea0d30
1 parent
3450814a
fix double values for MacOS
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
android/src/main/kotlin/dev/steenbakker/mobile_scanner/MobileScannerHandler.kt
macos/mobile_scanner/Sources/mobile_scanner/MobileScannerPlugin.swift
android/src/main/kotlin/dev/steenbakker/mobile_scanner/MobileScannerHandler.kt
View file @
6dea0d3
...
...
@@ -52,8 +52,8 @@ class MobileScannerHandler(
"data" to barcodes,
"image" to mapOf(
"bytes" to image,
"width" to width!!.toDouble(),
"height" to height!!.toDouble(),
"width" to width?.toDouble(),
"height" to height?.toDouble(),
)
))
} else {
...
...
macos/mobile_scanner/Sources/mobile_scanner/MobileScannerPlugin.swift
View file @
6dea0d3
...
...
@@ -165,8 +165,8 @@ public class MobileScannerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler,
"data"
:
barcodes
.
map
({
$0
.
toMap
()
}),
"image"
:
cgImage
==
nil
?
nil
:
[
"bytes"
:
FlutterStandardTypedData
(
bytes
:
cgImage
!.
jpegData
(
compressionQuality
:
0.8
)
!
),
"width"
:
cgImage
!.
width
,
"height"
:
cgImage
!.
height
,
"width"
:
Double
(
cgImage
!.
width
),
"height"
:
Double
(
cgImage
!.
height
),
],
])
}
...
...
Please
register
or
login
to post a comment