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
2022-11-20 14:59:54 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5c0889ba653e89a140c704a0b5020ceb419936fd
5c0889ba
1 parent
718ee59e
fix deprecated API's
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
17 deletions
example/lib/barcode_list_scanner_controller.dart
example/lib/barcode_scanner_controller.dart
example/lib/barcode_scanner_returning_image.dart
example/lib/barcode_list_scanner_controller.dart
View file @
5c0889b
...
...
@@ -62,17 +62,13 @@ class _BarcodeListScannerWithControllerState
MobileScanner
(
controller:
controller
,
fit:
BoxFit
.
contain
,
// controller: MobileScannerController(
// torchEnabled: true,
// facing: CameraFacing.front,
// ),
onDetect:
(
barcodeCapture
)
{
onBarcodeDetected:
(
barcodeCapture
)
{
setState
(()
{
this
.
barcodeCapture
=
barcodeCapture
;
});
},
onStart:
(
arguments
)
{
// Do something with start arguments
onScannerRestarted:
(
arguments
)
{
// Do something with arguments.
},
),
Align
(
...
...
example/lib/barcode_scanner_controller.dart
View file @
5c0889b
...
...
@@ -62,11 +62,7 @@ class _BarcodeScannerWithControllerState
MobileScanner
(
controller:
controller
,
fit:
BoxFit
.
contain
,
// controller: MobileScannerController(
// torchEnabled: true,
// facing: CameraFacing.front,
// ),
onDetect:
(
barcode
)
{
onBarcodeDetected:
(
barcode
)
{
setState
(()
{
this
.
barcode
=
barcode
;
});
...
...
example/lib/barcode_scanner_returning_image.dart
View file @
5c0889b
...
...
@@ -84,11 +84,7 @@ class _BarcodeScannerReturningImageState
MobileScanner
(
controller:
controller
,
fit:
BoxFit
.
contain
,
// controller: MobileScannerController(
// torchEnabled: true,
// facing: CameraFacing.front,
// ),
onDetect:
(
barcode
)
{
onBarcodeDetected:
(
barcode
)
{
setState
(()
{
this
.
barcode
=
barcode
;
});
...
...
Please
register
or
login
to post a comment