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-01-31 08:58:07 +0100
Browse Files
Options
Browse Files
Download
Plain Diff
Committed by
GitHub
2023-01-31 08:58:07 +0100
Commit
262e05e1e35154cd8d02edaa42989d768de65f3a
262e05e1
2 parents
0f6bc2fc
e2b14e58
Merge branch 'master' into pavel/web-auto
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
57 additions
and
45 deletions
.github/workflows/auto-assign-pr.yml
.github/workflows/flutter.yml
.github/workflows/release-please.yml
android/build.gradle
example/android/build.gradle
example/lib/barcode_list_scanner_controller.dart
example/lib/barcode_scanner_controller.dart
example/lib/barcode_scanner_returning_image.dart
example/lib/barcode_scanner_window.dart
example/lib/barcode_scanner_without_controller.dart
example/lib/barcode_scanner_zoom.dart
.github/workflows/auto-assign-pr.yml
View file @
262e05e
...
...
@@ -12,4 +12,4 @@ jobs:
assign-author
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
toshimaru/auto-author-assign@v1.6.
1
-
uses
:
toshimaru/auto-author-assign@v1.6.
2
...
...
.github/workflows/flutter.yml
View file @
262e05e
...
...
@@ -11,7 +11,7 @@ jobs:
analysis
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3.
2
.0
-
uses
:
actions/checkout@v3.
3
.0
-
uses
:
actions/setup-java@v3.9.0
with
:
java-version
:
11
...
...
@@ -28,7 +28,7 @@ jobs:
formatting
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3.
2
.0
-
uses
:
actions/checkout@v3.
3
.0
-
uses
:
actions/setup-java@v3.9.0
with
:
java-version
:
11
...
...
.github/workflows/release-please.yml
View file @
262e05e
...
...
@@ -7,7 +7,7 @@
release-please
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
GoogleCloudPlatform/release-please-action@v3.7.
1
-
uses
:
GoogleCloudPlatform/release-please-action@v3.7.
3
with
:
token
:
${{ secrets.GITHUB_TOKEN }}
release-type
:
simple
...
...
android/build.gradle
View file @
262e05e
...
...
@@ -9,7 +9,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:7.
3.1
'
classpath
'com.android.tools.build:gradle:7.
4.0
'
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
...
...
example/android/build.gradle
View file @
262e05e
...
...
@@ -6,7 +6,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:7.
3.1
'
classpath
'com.android.tools.build:gradle:7.
4.0
'
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
...
...
example/lib/barcode_list_scanner_controller.dart
View file @
262e05e
...
...
@@ -28,19 +28,23 @@ class _BarcodeListScannerWithControllerState
bool
isStarted
=
true
;
void
_startOrStop
()
{
if
(
isStarted
)
{
controller
.
stop
();
}
else
{
controller
.
start
().
catchError
((
error
)
{
if
(
mounted
)
{
setState
(()
{});
}
try
{
if
(
isStarted
)
{
controller
.
stop
();
}
else
{
controller
.
start
();
}
setState
(()
{
isStarted
=
!
isStarted
;
});
}
on
Exception
catch
(
e
)
{
ScaffoldMessenger
.
of
(
context
).
showSnackBar
(
SnackBar
(
content:
Text
(
'Something went wrong!
$e
'
),
backgroundColor:
Colors
.
red
,
),
);
}
setState
(()
{
isStarted
=
!
isStarted
;
});
}
@override
...
...
@@ -121,7 +125,7 @@ class _BarcodeListScannerWithControllerState
overflow:
TextOverflow
.
fade
,
style:
Theme
.
of
(
context
)
.
textTheme
.
headline
4
!
.
headline
Medium
!
.
copyWith
(
color:
Colors
.
white
),
),
),
...
...
example/lib/barcode_scanner_controller.dart
View file @
262e05e
...
...
@@ -28,19 +28,23 @@ class _BarcodeScannerWithControllerState
bool
isStarted
=
true
;
void
_startOrStop
()
{
if
(
isStarted
)
{
controller
.
stop
();
}
else
{
controller
.
start
().
catchError
((
error
)
{
if
(
mounted
)
{
setState
(()
{});
}
try
{
if
(
isStarted
)
{
controller
.
stop
();
}
else
{
controller
.
start
();
}
setState
(()
{
isStarted
=
!
isStarted
;
});
}
on
Exception
catch
(
e
)
{
ScaffoldMessenger
.
of
(
context
).
showSnackBar
(
SnackBar
(
content:
Text
(
'Something went wrong!
$e
'
),
backgroundColor:
Colors
.
red
,
),
);
}
setState
(()
{
isStarted
=
!
isStarted
;
});
}
@override
...
...
@@ -127,7 +131,7 @@ class _BarcodeScannerWithControllerState
overflow:
TextOverflow
.
fade
,
style:
Theme
.
of
(
context
)
.
textTheme
.
headline
4
!
.
headline
Medium
!
.
copyWith
(
color:
Colors
.
white
),
),
),
...
...
example/lib/barcode_scanner_returning_image.dart
View file @
262e05e
...
...
@@ -30,19 +30,23 @@ class _BarcodeScannerReturningImageState
bool
isStarted
=
true
;
void
_startOrStop
()
{
if
(
isStarted
)
{
controller
.
stop
();
}
else
{
controller
.
start
().
catchError
((
error
)
{
if
(
mounted
)
{
setState
(()
{});
}
try
{
if
(
isStarted
)
{
controller
.
stop
();
}
else
{
controller
.
start
();
}
setState
(()
{
isStarted
=
!
isStarted
;
});
}
on
Exception
catch
(
e
)
{
ScaffoldMessenger
.
of
(
context
).
showSnackBar
(
SnackBar
(
content:
Text
(
'Something went wrong!
$e
'
),
backgroundColor:
Colors
.
red
,
),
);
}
setState
(()
{
isStarted
=
!
isStarted
;
});
}
@override
...
...
@@ -141,7 +145,7 @@ class _BarcodeScannerReturningImageState
overflow:
TextOverflow
.
fade
,
style:
Theme
.
of
(
context
)
.
textTheme
.
headline
4
!
.
headline
Medium
!
.
copyWith
(
color:
Colors
.
white
),
),
),
...
...
example/lib/barcode_scanner_window.dart
View file @
262e05e
...
...
@@ -82,7 +82,7 @@ class _BarcodeScannerWithScanWindowState
overflow:
TextOverflow
.
fade
,
style:
Theme
.
of
(
context
)
.
textTheme
.
headline
4
!
.
headline
Medium
!
.
copyWith
(
color:
Colors
.
white
),
),
),
...
...
example/lib/barcode_scanner_without_controller.dart
View file @
262e05e
...
...
@@ -54,7 +54,7 @@ class _BarcodeScannerWithoutControllerState
overflow:
TextOverflow
.
fade
,
style:
Theme
.
of
(
context
)
.
textTheme
.
headline
4
!
.
headline
Medium
!
.
copyWith
(
color:
Colors
.
white
),
),
),
...
...
example/lib/barcode_scanner_zoom.dart
View file @
262e05e
...
...
@@ -109,7 +109,7 @@ class _BarcodeScannerWithZoomState extends State<BarcodeScannerWithZoom>
overflow:
TextOverflow
.
fade
,
style:
Theme
.
of
(
context
)
.
textTheme
.
headline
4
!
.
headline
Medium
!
.
copyWith
(
color:
Colors
.
white
),
),
),
...
...
Please
register
or
login
to post a comment