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
2023-10-23 15:08:39 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
913273ff6c8e373dc7ebac3e7a6ca71e51e16080
913273ff
1 parent
320533ee
fix typo in `codebar` constant
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
lib/src/enums/barcode_format.dart
lib/src/web/zxing.dart
test/enums/barcode_format_test.dart
lib/src/enums/barcode_format.dart
View file @
913273f
...
...
@@ -16,7 +16,7 @@ enum BarcodeFormat {
code93
(
4
),
/// Barcode format constant for Codabar.
cod
e
bar
(
8
),
cod
a
bar
(
8
),
/// Barcode format constant for Data Matrix.
dataMatrix
(
16
),
...
...
@@ -45,6 +45,12 @@ enum BarcodeFormat {
/// Barcode format constant for AZTEC.
aztec
(
4096
);
/// This constant represents the old value for [BarcodeFormat.codabar].
///
/// Prefer using the new [BarcodeFormat.codabar] constant,
/// as the `codebar` value will be removed in a future release.
static
const
BarcodeFormat
codebar
=
codabar
;
const
BarcodeFormat
(
this
.
rawValue
);
factory
BarcodeFormat
.
fromRawValue
(
int
value
)
{
...
...
lib/src/web/zxing.dart
View file @
913273f
...
...
@@ -107,7 +107,7 @@ extension ZXingBarcodeFormat on BarcodeFormat {
switch
(
this
)
{
case
BarcodeFormat
.
aztec
:
return
0
;
case
BarcodeFormat
.
cod
e
bar
:
case
BarcodeFormat
.
cod
a
bar
:
return
1
;
case
BarcodeFormat
.
code39
:
return
2
;
...
...
test/enums/barcode_format_test.dart
View file @
913273f
...
...
@@ -10,7 +10,7 @@ void main() {
1
:
BarcodeFormat
.
code128
,
2
:
BarcodeFormat
.
code39
,
4
:
BarcodeFormat
.
code93
,
8
:
BarcodeFormat
.
cod
e
bar
,
8
:
BarcodeFormat
.
cod
a
bar
,
16
:
BarcodeFormat
.
dataMatrix
,
32
:
BarcodeFormat
.
ean13
,
64
:
BarcodeFormat
.
ean8
,
...
...
@@ -44,7 +44,7 @@ void main() {
BarcodeFormat
.
code128
:
1
,
BarcodeFormat
.
code39
:
2
,
BarcodeFormat
.
code93
:
4
,
BarcodeFormat
.
cod
e
bar
:
8
,
BarcodeFormat
.
cod
a
bar
:
8
,
BarcodeFormat
.
dataMatrix
:
16
,
BarcodeFormat
.
ean13
:
32
,
BarcodeFormat
.
ean8
:
64
,
...
...
Please
register
or
login
to post a comment