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-06-18 10:00:33 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9d1a70fcf0919de317c2ffee65ae2158e36d0840
9d1a70fc
1 parent
196a4b0f
add a not to onDetect about error handling
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
lib/src/mobile_scanner.dart
lib/src/mobile_scanner.dart
View file @
9d1a70f
...
...
@@ -35,6 +35,12 @@ class MobileScanner extends StatefulWidget {
/// The function that signals when new codes were detected by the [controller].
/// If null, use the controller.barcodes stream directly to capture barcodes.
///
/// This method does not receive any [MobileScannerBarcodeException]s
/// that are emitted by the scanner.
///
/// To handle both [BarcodeCapture]s and [MobileScannerBarcodeException]s,
/// use the [MobileScannerController.barcodes] stream directly.
final
void
Function
(
BarcodeCapture
barcodes
)?
onDetect
;
/// The error builder for the camera preview.
...
...
Please
register
or
login
to post a comment