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
2023-03-17 16:13:26 +0100
Browse Files
Options
Browse Files
Download
Plain Diff
Committed by
GitHub
2023-03-17 16:13:26 +0100
Commit
100594fdfba4f2ef333e049e9574152f5b9c0c0d
100594fd
2 parents
85c252c0
17dba8b2
Merge pull request #534 from neel-sharma/master
fix: ios gallery typecast issue
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
lib/src/mobile_scanner_controller.dart
lib/src/objects/barcode_capture.dart
lib/src/mobile_scanner_controller.dart
View file @
100594f
...
...
@@ -341,6 +341,7 @@ class MobileScannerController {
.
toList
();
_barcodesController
.
add
(
BarcodeCapture
(
raw:
data
,
barcodes:
parsed
,
image:
event
[
'image'
]
as
Uint8List
?,
width:
event
[
'width'
]
as
double
?,
...
...
@@ -351,6 +352,7 @@ class MobileScannerController {
case
'barcodeMac'
:
_barcodesController
.
add
(
BarcodeCapture
(
raw:
data
,
barcodes:
[
Barcode
(
rawValue:
(
data
as
Map
)[
'payload'
]
as
String
?,
...
...
@@ -363,6 +365,7 @@ class MobileScannerController {
final
barcode
=
data
as
Map
?;
_barcodesController
.
add
(
BarcodeCapture
(
raw:
data
,
barcodes:
[
if
(
barcode
!=
null
)
Barcode
(
...
...
lib/src/objects/barcode_capture.dart
View file @
100594f
...
...
@@ -9,6 +9,7 @@ import 'package:mobile_scanner/src/objects/barcode.dart';
/// [image] If enabled, an image of the scanned frame.
class
BarcodeCapture
{
final
List
<
Barcode
>
barcodes
;
final
dynamic
raw
;
final
Uint8List
?
image
;
...
...
@@ -18,6 +19,7 @@ class BarcodeCapture {
BarcodeCapture
({
required
this
.
barcodes
,
required
this
.
raw
,
this
.
image
,
this
.
width
,
this
.
height
,
...
...
Please
register
or
login
to post a comment