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-10-23 09:56:20 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
67e0932f223409a452a78048e36c37623f46d1c4
67e0932f
1 parent
dcf46c28
fix formats for analyze image
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
lib/src/mobile_scanner_controller.dart
lib/src/mobile_scanner_controller.dart
View file @
67e0932
...
...
@@ -186,6 +186,8 @@ class MobileScannerController extends ValueNotifier<MobileScannerState> {
/// Analyze an image file.
///
/// The [path] points to a file on the device.
/// The [formats] specify the barcode formats that should be detected in the image.
/// If the [formats] are omitted or empty, all formats are detected.
///
/// This is only supported on Android, iOS and MacOS.
///
...
...
@@ -193,8 +195,11 @@ class MobileScannerController extends ValueNotifier<MobileScannerState> {
///
/// If an error occurred during the analysis of the image,
/// a [MobileScannerBarcodeException] error is thrown.
Future
<
BarcodeCapture
?>
analyzeImage
(
String
path
)
{
return
MobileScannerPlatform
.
instance
.
analyzeImage
(
path
);
Future
<
BarcodeCapture
?>
analyzeImage
(
String
path
,
{
List
<
BarcodeFormat
>
formats
=
const
<
BarcodeFormat
>[],
})
{
return
MobileScannerPlatform
.
instance
.
analyzeImage
(
path
,
formats:
formats
);
}
/// Build a camera preview widget.
...
...
Please
register
or
login
to post a comment