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
Jennifer
2023-09-18 10:47:57 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b24afed7b7e1300825b8342aec533af71dea3608
b24afed7
1 parent
8d7a0635
fix: Add back LayoutBuilder to calculate the correct widgetSize
Show 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 @
b24afed
...
...
@@ -248,8 +248,8 @@ class _MobileScannerState extends State<MobileScanner>
@override
Widget
build
(
BuildContext
context
)
{
final
Size
size
=
MediaQuery
.
of
(
context
).
size
;
return
LayoutBuilder
(
builder:
(
context
,
constraints
)
{
return
ValueListenableBuilder
<
MobileScannerArguments
?>(
valueListenable:
_controller
.
startArguments
,
builder:
(
context
,
value
,
child
)
{
...
...
@@ -262,7 +262,7 @@ class _MobileScannerState extends State<MobileScanner>
widget
.
fit
,
widget
.
scanWindow
!,
value
.
size
,
size
,
Size
(
constraints
.
maxWidth
,
constraints
.
maxHeight
)
,
);
_controller
.
updateScanWindow
(
scanWindow
);
...
...
@@ -280,6 +280,8 @@ class _MobileScannerState extends State<MobileScanner>
}
},
);
},
);
}
Widget
_scanner
(
Size
size
,
String
?
webId
,
int
?
textureId
)
{
...
...
Please
register
or
login
to post a comment