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
2022-12-12 22:37:42 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b358cdec9ae6045e46565769657ae313d7f3c957
b358cdec
1 parent
ce5d2dd1
imp: fix multiple assignments of scanWindow
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
lib/src/mobile_scanner.dart
lib/src/mobile_scanner.dart
View file @
b358cde
...
...
@@ -179,6 +179,8 @@ class _MobileScannerState extends State<MobileScanner>
);
}
Rect
?
scanWindow
;
@override
Widget
build
(
BuildContext
context
)
{
return
LayoutBuilder
(
...
...
@@ -191,14 +193,14 @@ class _MobileScannerState extends State<MobileScanner>
const
ColoredBox
(
color:
Colors
.
black
);
}
if
(
widget
.
scanWindow
!=
null
)
{
final
window
=
calculateScanWindowRelativeToTextureInPercentage
(
if
(
widget
.
scanWindow
!=
null
&&
scanWindow
==
null
)
{
scanWindow
=
calculateScanWindowRelativeToTextureInPercentage
(
widget
.
fit
,
widget
.
scanWindow
!,
value
.
size
,
Size
(
constraints
.
maxWidth
,
constraints
.
maxHeight
),
);
_controller
.
updateScanWindow
(
window
);
_controller
.
updateScanWindow
(
scanWindow
!
);
}
return
ClipRect
(
...
...
Please
register
or
login
to post a comment