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
2023-03-27 10:13:13 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
96af70a248ee0c494f32dbe1205de4b24417cf2c
96af70a2
1 parent
72101a23
use MediaQuery.sizeOf() instead of the topmost layout builder
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
lib/src/mobile_scanner.dart
lib/src/mobile_scanner.dart
View file @
96af70a
...
...
@@ -232,8 +232,8 @@ class _MobileScannerState extends State<MobileScanner>
@override
Widget
build
(
BuildContext
context
)
{
return
LayoutBuilder
(
builder:
(
context
,
constraints
)
{
final
Size
size
=
MediaQuery
.
sizeOf
(
context
);
return
ValueListenableBuilder
<
MobileScannerArguments
?>(
valueListenable:
_controller
.
startArguments
,
builder:
(
context
,
value
,
child
)
{
...
...
@@ -246,7 +246,7 @@ class _MobileScannerState extends State<MobileScanner>
widget
.
fit
,
widget
.
scanWindow
!,
value
.
size
,
constraints
.
biggest
,
size
,
);
_controller
.
updateScanWindow
(
scanWindow
);
...
...
@@ -272,8 +272,6 @@ class _MobileScannerState extends State<MobileScanner>
);
},
);
},
);
}
@override
...
...
Please
register
or
login
to post a comment