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-28 12:12:18 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ed3f54fcd0e1525d397f6dc2241fda9a6f27bc97
ed3f54fc
1 parent
447996d8
fix macos entitlements for example & use raw value for sample
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
CHANGELOG.md
example/lib/barcode_scanner_analyze_image.dart
example/macos/Runner/DebugProfile.entitlements
CHANGELOG.md
View file @
ed3f54f
...
...
@@ -13,6 +13,7 @@ the sample recommends using `hasCameraPermission`, which also guards against cam
Bugs fixed:
*
Fixed a bug that would cause the scanner to emit an error when it was already started. Now it ignores any calls to start while it is starting.
*
[
MacOS
]
Fixed a bug that prevented the
`anaylzeImage()`
sample from working properly.
## 5.2.3
...
...
example/lib/barcode_scanner_analyze_image.dart
View file @
ed3f54f
...
...
@@ -22,7 +22,14 @@ class _BarcodeScannerAnalyzeImageState
final
XFile
?
file
=
await
ImagePicker
().
pickImage
(
source
:
ImageSource
.
gallery
);
if
(!
mounted
||
file
==
null
)
{
if
(!
mounted
)
{
return
;
}
if
(
file
==
null
)
{
setState
(()
{
_barcodeCapture
=
null
;
});
return
;
}
...
...
@@ -43,7 +50,7 @@ class _BarcodeScannerAnalyzeImageState
if
(
_barcodeCapture
!=
null
)
{
label
=
Text
(
_barcodeCapture
?.
barcodes
.
firstOrNull
?.
display
Value
??
_barcodeCapture
?.
barcodes
.
firstOrNull
?.
raw
Value
??
'No barcode detected'
,
);
}
...
...
example/macos/Runner/DebugProfile.entitlements
View file @
ed3f54f
...
...
@@ -10,5 +10,7 @@
<true/>
<key>
com.apple.security.network.server
</key>
<true/>
<key>
com.apple.security.files.user-selected.read-only
</key>
<true/>
</dict>
</plist>
...
...
Please
register
or
login
to post a comment