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-01-08 12:17:31 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6f421d5f1cadc27f6373d97caa3c3cd61de22d47
6f421d5f
1 parent
3cdeeb38
fix sizeOf usage
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
example/lib/barcode_scanner_controller.dart
example/lib/barcode_scanner_window.dart
example/lib/mobile_scanner_overlay.dart
example/lib/barcode_scanner_controller.dart
View file @
6f421d5
...
...
@@ -71,7 +71,7 @@ class _BarcodeScannerWithControllerState
case
AppLifecycleState
.
paused
:
return
;
case
AppLifecycleState
.
resumed
:
_subscription
??
=
controller
.
barcodes
.
listen
(
_handleBarcode
);
_subscription
=
controller
.
barcodes
.
listen
(
_handleBarcode
);
unawaited
(
controller
.
start
());
case
AppLifecycleState
.
inactive
:
...
...
example/lib/barcode_scanner_window.dart
View file @
6f421d5
...
...
@@ -90,7 +90,7 @@ class _BarcodeScannerWithScanWindowState
@override
Widget
build
(
BuildContext
context
)
{
final
scanWindow
=
Rect
.
fromCenter
(
center:
MediaQuery
.
of
(
context
).
size
.
center
(
Offset
.
zero
),
center:
MediaQuery
.
sizeOf
(
context
)
.
center
(
Offset
.
zero
),
width:
200
,
height:
200
,
);
...
...
example/lib/mobile_scanner_overlay.dart
View file @
6f421d5
...
...
@@ -23,7 +23,7 @@ class _BarcodeScannerWithOverlayState extends State<BarcodeScannerWithOverlay> {
@override
Widget
build
(
BuildContext
context
)
{
final
scanWindow
=
Rect
.
fromCenter
(
center:
MediaQuery
.
of
(
context
).
size
.
center
(
Offset
.
zero
),
center:
MediaQuery
.
sizeOf
(
context
)
.
center
(
Offset
.
zero
),
width:
200
,
height:
200
,
);
...
...
Please
register
or
login
to post a comment