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-10-24 19:57:31 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8ba3164611b08cbdfc63a279f37e0a55b12fe1c5
8ba31646
1 parent
31a4ecbb
fix a cast from a bad conversion
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
lib/src/objects/barcode.dart
lib/src/objects/barcode.dart
View file @
8ba3164
...
...
@@ -62,8 +62,13 @@ class Barcode {
corners:
corners
==
null
?
const
<
Offset
>[]
:
List
.
unmodifiable
(
corners
.
cast
<
Map
<
String
,
double
>>().
map
((
Map
<
String
,
double
>
e
)
{
return
Offset
(
e
[
'x'
]!,
e
[
'y'
]!);
corners
.
cast
<
Map
<
Object
?,
Object
?>>()
.
map
((
Map
<
Object
?,
Object
?>
e
)
{
final
double
x
=
e
[
'x'
]!
as
double
;
final
double
y
=
e
[
'y'
]!
as
double
;
return
Offset
(
x
,
y
);
}),
),
displayValue:
data
[
'displayValue'
]
as
String
?,
...
...
Please
register
or
login
to post a comment