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
Julian Steenbakker
2022-03-11 16:04:11 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
754478ec05f966575f0a83fc05e75182561b61cd
754478ec
1 parent
36d2b0c7
breaking: change allowDuplicates default to false
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
example/lib/barcode_scanner_controller.dart
example/lib/barcode_scanner_without_controller.dart
lib/src/mobile_scanner.dart
example/lib/barcode_scanner_controller.dart
View file @
754478e
...
...
@@ -33,7 +33,7 @@ class _BarcodeScannerWithControllerState
MobileScanner
(
controller:
controller
,
fit:
BoxFit
.
contain
,
allowDuplicates:
fals
e
,
// allowDuplicates: tru
e,
// controller: MobileScannerController(
// torchEnabled: true,
// facing: CameraFacing.front,
...
...
example/lib/barcode_scanner_without_controller.dart
View file @
754478e
...
...
@@ -23,7 +23,7 @@ class _BarcodeScannerWithoutControllerState
children:
[
MobileScanner
(
fit:
BoxFit
.
contain
,
allowDuplicates:
false
,
//
allowDuplicates: false,
onDetect:
(
barcode
,
args
)
{
setState
(()
{
this
.
barcode
=
barcode
.
rawValue
;
...
...
lib/src/mobile_scanner.dart
View file @
754478e
...
...
@@ -33,7 +33,7 @@ class MobileScanner extends StatefulWidget {
this
.
onDetect
,
this
.
controller
,
this
.
fit
=
BoxFit
.
cover
,
this
.
allowDuplicates
=
tru
e
})
this
.
allowDuplicates
=
fals
e
})
:
super
(
key:
key
);
@override
...
...
Please
register
or
login
to post a comment