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-11-09 10:20:56 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e7d6b2b3a18c1cdb83d55027a344498e85cad7db
e7d6b2b3
1 parent
7975e227
fix bug with context mounted
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
example/lib/barcode_scanner_zoom.dart
example/lib/barcode_scanner_zoom.dart
View file @
e7d6b2b
...
...
@@ -29,6 +29,10 @@ class _BarcodeScannerWithZoomState extends State<BarcodeScannerWithZoom>
void
initState
()
{
super
.
initState
();
_barcodesSubscription
=
controller
.
barcodes
.
listen
((
event
)
{
if
(!
context
.
mounted
)
{
return
;
}
setState
(()
{
barcode
=
event
;
});
...
...
Please
register
or
login
to post a comment