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
2023-09-26 09:21:50 +0200
Browse Files
Options
Browse Files
Download
Plain Diff
Committed by
GitHub
2023-09-26 09:21:50 +0200
Commit
db30f063038653160c0294e6b8c48b67de6cff6d
db30f063
2 parents
7f76c6fd
128ce4b6
Merge branch 'master' into master
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
11 deletions
.github/workflows/flutter.yml
android/build.gradle
example/android/build.gradle
lib/src/mobile_scanner.dart
lib/src/mobile_scanner_controller.dart
lib/src/web/base.dart
.github/workflows/flutter.yml
View file @
db30f06
...
...
@@ -11,7 +11,7 @@ jobs:
analysis
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v
3.5.3
-
uses
:
actions/checkout@v
4.0.0
-
uses
:
actions/setup-java@v3.12.0
with
:
java-version
:
11
...
...
@@ -28,7 +28,7 @@ jobs:
formatting
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v
3.5.3
-
uses
:
actions/checkout@v
4.0.0
-
uses
:
actions/setup-java@v3.12.0
with
:
java-version
:
11
...
...
android/build.gradle
View file @
db30f06
...
...
@@ -2,14 +2,14 @@ group 'dev.steenbakker.mobile_scanner'
version
'1.0-SNAPSHOT'
buildscript
{
ext
.
kotlin_version
=
'1.9.0'
ext
.
kotlin_version
=
'1.9.
1
0'
repositories
{
google
()
mavenCentral
()
}
dependencies
{
classpath
'com.android.tools.build:gradle:8.1.
0
'
classpath
'com.android.tools.build:gradle:8.1.
1
'
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
...
...
example/android/build.gradle
View file @
db30f06
buildscript
{
ext
.
kotlin_version
=
'1.9.0'
ext
.
kotlin_version
=
'1.9.
1
0'
repositories
{
google
()
mavenCentral
()
}
dependencies
{
classpath
'com.android.tools.build:gradle:8.1.
0
'
classpath
'com.android.tools.build:gradle:8.1.
1
'
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
...
...
lib/src/mobile_scanner.dart
View file @
db30f06
...
...
@@ -204,7 +204,7 @@ class _MobileScannerState extends State<MobileScanner>
alignment:
Alignment
.
center
,
children:
[
_scanner
(
value
.
size
,
value
.
webId
,
value
.
textureId
),
widget
.
overlay
!
widget
.
overlay
!
,
],
);
}
else
{
...
...
lib/src/mobile_scanner_controller.dart
View file @
db30f06
...
...
@@ -384,7 +384,7 @@ class MobileScannerController {
barcodes:
[
Barcode
(
rawValue:
(
data
as
Map
)[
'payload'
]
as
String
?,
)
)
,
],
),
);
...
...
lib/src/web/base.dart
View file @
db30f06
...
...
@@ -80,7 +80,7 @@ mixin InternalStreamCreation on WebBarcodeReaderBase {
'video'
:
VideoOptions
(
facingMode:
cameraFacing
==
CameraFacing
.
front
?
'user'
:
'environment'
,
)
)
,
};
}
else
{
constraints
=
{
'video'
:
true
};
...
...
@@ -147,8 +147,8 @@ mixin InternalTorchDetection on InternalStreamCreation {
final
track
=
localMediaStream
?.
getVideoTracks
();
await
track
?.
first
.
applyConstraints
({
'advanced'
:
[
{
'torch'
:
enabled
}
]
{
'torch'
:
enabled
},
],
});
}
}
...
...
Please
register
or
login
to post a comment