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
2024-02-28 10:53:40 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a427f8d3cf095d232d8e034d4ffdb3a845ac8f95
a427f8d3
1 parent
4279cf34
fix lint warning
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
example/lib/barcode_list_scanner_controller.dart
example/lib/barcode_scanner_controller.dart
example/lib/barcode_scanner_zoom.dart
example/lib/barcode_list_scanner_controller.dart
View file @
a427f8d
...
...
@@ -154,7 +154,7 @@ class _BarcodeListScannerWithControllerState
);
if
(
image
!=
null
)
{
if
(
await
controller
.
analyzeImage
(
image
.
path
))
{
if
(!
mounted
)
return
;
if
(!
context
.
mounted
)
return
;
ScaffoldMessenger
.
of
(
context
).
showSnackBar
(
const
SnackBar
(
content:
Text
(
'Barcode found!'
),
...
...
@@ -162,7 +162,7 @@ class _BarcodeListScannerWithControllerState
),
);
}
else
{
if
(!
mounted
)
return
;
if
(!
context
.
mounted
)
return
;
ScaffoldMessenger
.
of
(
context
).
showSnackBar
(
const
SnackBar
(
content:
Text
(
'No barcode found!'
),
...
...
example/lib/barcode_scanner_controller.dart
View file @
a427f8d
...
...
@@ -170,7 +170,7 @@ class _BarcodeScannerWithControllerState
);
if
(
image
!=
null
)
{
if
(
await
controller
.
analyzeImage
(
image
.
path
))
{
if
(!
mounted
)
return
;
if
(!
context
.
mounted
)
return
;
ScaffoldMessenger
.
of
(
context
).
showSnackBar
(
const
SnackBar
(
content:
Text
(
'Barcode found!'
),
...
...
@@ -178,7 +178,7 @@ class _BarcodeScannerWithControllerState
),
);
}
else
{
if
(!
mounted
)
return
;
if
(!
context
.
mounted
)
return
;
ScaffoldMessenger
.
of
(
context
).
showSnackBar
(
const
SnackBar
(
content:
Text
(
'No barcode found!'
),
...
...
example/lib/barcode_scanner_zoom.dart
View file @
a427f8d
...
...
@@ -171,7 +171,7 @@ class _BarcodeScannerWithZoomState extends State<BarcodeScannerWithZoom>
);
if
(
image
!=
null
)
{
if
(
await
controller
.
analyzeImage
(
image
.
path
))
{
if
(!
mounted
)
return
;
if
(!
context
.
mounted
)
return
;
ScaffoldMessenger
.
of
(
context
).
showSnackBar
(
const
SnackBar
(
content:
Text
(
'Barcode found!'
),
...
...
@@ -179,7 +179,7 @@ class _BarcodeScannerWithZoomState extends State<BarcodeScannerWithZoom>
),
);
}
else
{
if
(!
mounted
)
return
;
if
(!
context
.
mounted
)
return
;
ScaffoldMessenger
.
of
(
context
).
showSnackBar
(
const
SnackBar
(
content:
Text
(
'No barcode found!'
),
...
...
Please
register
or
login
to post a comment