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-09 13:38:28 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5c618204b99c7719b250490e5bf226e5d07593d7
5c618204
1 parent
d9767a44
fix wrong size in scan window example
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
example/lib/barcode_scanner_window.dart
example/lib/barcode_scanner_window.dart
View file @
5c61820
...
...
@@ -39,16 +39,16 @@ class _BarcodeScannerWithScanWindowState
final
scannedBarcode
=
barcodeCapture
.
barcodes
.
first
;
// No barcode corners, or size, or no camera preview size.
if
(
scannedBarcode
.
corners
.
isEmpty
||
value
.
size
.
isEmpty
||
barcodeCapture
.
size
.
isEmpty
)
{
if
(
value
.
size
.
isEmpty
||
scannedBarcode
.
size
.
isEmpty
||
scannedBarcode
.
corners
.
isEmpty
)
{
return
const
SizedBox
();
}
return
CustomPaint
(
painter:
BarcodeOverlay
(
barcodeCorners:
scannedBarcode
.
corners
,
barcodeSize:
barcodeCaptur
e
.
size
,
barcodeSize:
scannedBarcod
e
.
size
,
boxFit:
BoxFit
.
contain
,
cameraPreviewSize:
value
.
size
,
),
...
...
Please
register
or
login
to post a comment