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-22 20:09:18 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5b87b8c883b36ba80c35d7148ae1134124613645
5b87b8c8
1 parent
2adb5efc
convert camera facing & detection speed to enhanced enums
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
lib/src/enums/camera_facing.dart
lib/src/enums/detection_speed.dart
lib/src/enums/camera_facing.dart
View file @
5b87b8c
/// The facing of a camera.
enum
CameraFacing
{
/// Front facing camera.
front
,
front
(
0
)
,
/// Back facing camera.
back
,
back
(
1
);
const
CameraFacing
(
this
.
rawValue
);
/// The raw value for the camera facing direction.
final
int
rawValue
;
}
...
...
lib/src/enums/detection_speed.dart
View file @
5b87b8c
...
...
@@ -5,16 +5,21 @@ enum DetectionSpeed {
///
/// NOTE: This mode does analyze every frame in order to check if the value
/// has changed.
noDuplicates
,
noDuplicates
(
0
)
,
/// The barcode scanner will scan one barcode, and wait 250 Miliseconds before
/// scanning again. This will prevent memory issues on older devices.
///
/// You can change the timeout duration with [detectionTimeout] parameter.
normal
,
normal
(
1
)
,
/// Let the scanner detect barcodes without restriction.
///
/// NOTE: This can cause memory issues with older devices.
unrestricted
,
unrestricted
(
2
);
const
DetectionSpeed
(
this
.
rawValue
);
/// The raw value for the detection speed.
final
int
rawValue
;
}
...
...
Please
register
or
login
to post a comment